plot_region: Plot region

Description Usage Arguments Value Examples

Description

Plot region

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
plot_region(x, chr, start, end, ...)

## S4 method for signature 'NanoMethResult,character,numeric,numeric'
plot_region(
  x,
  chr,
  start,
  end,
  anno_regions = NULL,
  spaghetti = FALSE,
  span = NULL
)

## S4 method for signature 'NanoMethResult,factor,numeric,numeric'
plot_region(
  x,
  chr,
  start,
  end,
  anno_regions = NULL,
  spaghetti = FALSE,
  span = NULL
)

Arguments

x

the NanoMethResult object

chr

the chromosome to plot

start

the start of the plotting region

end

the end of the plotting region

...

additional arguments

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.

Value

a ggplot object.

a ggplot object.

Examples

1
2
3
4
5
nmr <- load_example_nanomethresult()
plot_region(nmr, "chr7", 6703892, 6730431)

nmr <- load_example_nanomethresult()
plot_region(nmr, "chr7", 6703892, 6730431)

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