plot_gene: Plot gene

Description Usage Arguments Value Examples

Description

Plot gene

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
plot_gene(x, gene, ...)

## S4 method for signature 'NanoMethResult,character'
plot_gene(
  x,
  gene,
  window = 0.3,
  anno_regions = NULL,
  spaghetti = FALSE,
  span = NULL,
  gene_anno = TRUE
)

Arguments

x

the NanoMethResult object.

gene

the gene symbol for the gene to plot.

...

additional arguments

window

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.

anno_regions

the data.frame of regions to annotate.

spaghetti

whether or not individual reads should be shown.

span

the span for loess smoothing.

gene_anno

whether or not gene annotation tracks are plotted.

Value

a patchwork plot.

a patchwork plot.

Examples

1
2
3
4
5
nmr <- load_example_nanomethresult()
plot_gene(nmr, "Peg3")

nmr <- load_example_nanomethresult()
plot_gene(nmr, "Peg3")

NanoMethViz documentation built on Nov. 8, 2020, 4:51 p.m.