View source: R/plot.localZScoreResults.R
plot.localZScoreResults | R Documentation |
Function for plotting the a localZScoreResults
object.
## S3 method for class 'localZScoreResults'
plot(x, main = "", num.x.labels = 5, ...)
x |
an object of class |
main |
a character specifying the main title of the plot. Defaults to no title. |
num.x.labels |
a numeric specifying the number of ticks to label the x axis. The total number will be 2*num.x.labels + 1. Defaults to 5. |
... |
further arguments to be passed to or from methods. |
A plot is created on the current graphics device.
localZScore
genome <- filterChromosomes(getGenome("hg19"), keep.chr="chr1")
A <- createRandomRegions(nregions=20, length.mean=10000000, length.sd=20000, genome=genome, non.overlapping=FALSE)
B <- c(A, createRandomRegions(nregions=10, length.mean=100000, length.sd=20000, genome=genome, non.overlapping=FALSE))
pt <- overlapPermTest(A=A, B=B, ntimes=10, genome=genome, non.overlapping=FALSE)
lz <- localZScore(A=A, B=B, pt=pt)
plot(lz)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.