plot_grange {NanoMethViz} | R Documentation

## Plot GRanges

### Description

Plot GRanges

### Usage

    plot_grange(
      x,
      grange,
      anno_regions = NULL,
      spaghetti = FALSE,
      span = NULL,
      window_prop = 0.3
    )

### Arguments

`x` | the NanoMethResult object.
`grange` | the GRanges object with one entry.
`anno_regions` | the data.frame of regions to be annotated.
`spaghetti` | whether or not individual reads should be shown.
`span` | the span for loess smoothing.
`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 patchwork plot containing the methylation profile in the specified region.

a patchwork plot containing the methylation profile in the specified region.

### Examples

    nmr <- load_example_nanomethresult()
    plot_grange(nmr, GRanges("chr7:6703892-6730431"))

[Package NanoMethViz version 1.2.0 Index]