plot_grange_heatmap {NanoMethViz} | R Documentation

## Plot GRanges heatmap

### Description

Plot GRanges heatmap

### Usage

    plot_grange_heatmap(
      x,
      grange,
      pos_style = c("to_scale", "compact"),
      window_prop = 0.3
    )

### Arguments

`x` | the NanoMethResult object.
`grange` | the GRanges object with one entry.
`pos_style` | the style for plotting the base positions along the x-axis. Defaults to "to_scale", plotting (potentially) overlapping squares along the genomic position to scale. The "compact" options plots only the positions with measured modification.
`window_prop` | the size of flanking region to plot. Can be a vector of two values for left and right window size. Values indicate proportion of gene length.

### Value

a ggplot plot containing the heatmap.

### Examples

    nmr <- load_example_nanomethresult()
    gr <- GenomicRanges::GRanges(data.frame(chr = "chr7", start = 6703892, end = 6730431))
    plot_grange_heatmap(nmr, gr[1, ])

[Package NanoMethViz version 1.2.0 Index]