plotViewpoint: Plot coverage around a virtual 4C viewpoint

Description Usage Arguments Value Examples

Description

Plots coverage of interactions around a given viewpoint. This function requires the output of 'viewPoint()' as input. You should additionally specify the total region you wish to plot.

Usage

1
plotViewpoint(x, region, ylab = "Signal", xlab = NULL, ...)

Arguments

x

A GenomicInteractions object generated by viewPoint.

region

A GRanges object specifying the genomic region to plot.

ylab

String containing the Y axis label.

xlab

String containing the X axis label. By default this is the chromosome of the region that is being plotted.

...

Additional arguments to pass to plot.

Value

A coverage track is plotted on the current graphics device. A RleList object containing the result of coverage is invisibly returned.

Examples

1
2
3
4
5
6
7
data(hic_example_data)
hic_example_data <- updateObject(hic_example_data)

pos <- GRanges(seqnames="chr15", ranges=IRanges(start=59477709, end=59482708))
region <- GRanges(seqnames="chr15", ranges=IRanges(start=58980209, end=59980208))
vp <- viewPoint(hic_example_data, pos, region)
plotViewpoint(vp, region)

LTLA/fugi documentation built on June 22, 2019, 8:50 p.m.