plot.localZScoreResultsList: Plot a list of localZscore results

Description Usage Arguments Value See Also Examples

View source: R/plot.localZScoreResultsList.R

Description

Function for plotting the a localZScoreResultsList object.

Usage

1
2
3
## S3 method for class 'localZScoreResultsList'
plot(x, ncol = NA, main = "",
  num.x.labels = 5, ...)

Arguments

x

an object of class localZScoreResultsList.

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.

Value

A plot is created on the current graphics device.

See Also

localZScore

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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)

pt2 <- permTest(A=A, B=B, ntimes=10, randomize.function=randomizeRegions, evaluate.function=list(overlap=numOverlaps, distance=meanDistance), genome=genome, non.overlapping=FALSE)
plot(pt2)

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