plotRegions: Plot Regions

Description Usage Arguments Value Examples

View source: R/plotRegions.R

Description

Plots sets of regions

Usage

1
plotRegions(x, chromosome, start=NULL, end=NULL, regions.labels=NULL, regions.colors=NULL, ...)

Arguments

x

list of objects to be ploted.

chromosome

character or numeric value indicating which chromosome you want to plot.

start

numeric value indicating from which position you want to plot.

end

numeric value indicating to which position you want to plot.

regions.labels

vector indicating the labels for the y axes. It must have the same length as x.

regions.colors

character vector indicating the colors for the plotted regions. It must have the same length as x.

...

Arguments to be passed to methods, such as graphical parameters (see par).

Value

A plot is created on the current graphics device.

Examples

1
2
3
4
5
A <- data.frame(chr=1, start=c(1,15,24,40,50), end=c(10,20,30,45,55))

B <- data.frame(chr=1, start=c(2,12,28,35), end=c(5,25,33,43))

plotRegions(list(A,B), chromosome=1, regions.labels=c("A","B"), regions.colors=3:2)

regioneR documentation built on Nov. 8, 2020, 5 p.m.