cnView(x, y = NULL, z = NULL, genome = "hg19", chr = "chr1", CNscale = "absolute", ideogram_txtAngle = 45, ideogram_txtSize = 5, plotLayer = NULL, ideogramLayer = NULL, out = "plot")
cnView is also able to represent p-values for copy-number calls if they are supplied via the "p_value" column in the argument supplied to x. The presence of this column in x will set a transparency value to copy-number calls with calls of less significance becoming more transparent.
If it is available cnView can plot copy-number segment calls on top of raw calls supplied to parameter `x` via the parameter `z`.
# Create data
chromosome <- 'chr14'
coordinate <- sort(sample(0:106455000, size=2000, replace=FALSE))
cn <- c(rnorm(300, mean=3, sd=.2), rnorm(700, mean=2, sd=.2), rnorm(1000, mean=3, sd=.2))
data <- as.data.frame(cbind(chromosome, coordinate, cn))
# Plot raw copy number calls
cnView(data, chr='chr14', genome='hg19', ideogram_txtSize=4)
Run the code above in your browser using DataLab