plotChrRegions {htSeqTools} | R Documentation |
Produces a plot with all chromosomes for a given organism, marking regions of interest in a user-specified color.
plotChrRegions(regions, chrLength, markColor='red', ...)
regions |
|
chrLength |
Named integer vector with chromosome lengths in base pairs. |
markColor |
Color to be used to mark the regions in the chromosome. |
... |
Further parameters passed on to |
This function produces a plot.
set.seed(1) chr <- rep(c('chr1','chr2'),each=10) chrLength <- c(chr1=10000,chr2=5000) st <- c(runif(10,1,10000),runif(10,1,5000)) regions <- RangedData(IRanges(st,st+50),space=chr) plotChrRegions(regions,chrLength=chrLength)