plotViewpoint: Plot coverage around a virtual 4C viewpoint

Description Usage Arguments Value Examples

View source: R/viewPoints.R

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 GInteractions object which is output from viewPoint

region

The genomic region to plot

ylab

Y axis label.

xlab

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

...

additional arguments to plot

Value

Coverage that is plotted (invisibly)

Examples

1
2
3
4
5
6
data(hic_example_data)
library(GenomicRanges)
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)

Bioconductor-mirror/GenomicInteractions documentation built on June 23, 2017, 6:23 p.m.