Description Usage Arguments Examples
View source: R/CopyNumber450kCancer.R
To be used internally by the package only.
This function plots the chromosomal regions (segments) with colored segments based on the cutoff. This function was built based on "plotSample" function in "CopyNumber450k" package (http://www.bioconductor.org/packages/release/bioc/html/CopyNumber450k.html), and uses a modified "minor.tick" function in "Hmisc" package to draw small tick in the plots.
1 | plotRegions(object, chr, start, end, cutoff = 0.1, markers = 20, ...)
|
object |
Data object, as returned by |
chr |
Chromosomes to plot. |
start |
Start positions of region to plot. |
end |
End position of region to plot. |
cutoff |
Log R ratio cutoff. |
markers |
Minimum number of markers per segment cutoff. Less than this number the segment will not be plotted. |
... |
Sent to |
1 2 3 4 5 6 7 8 9 10 11 12 | #To be used internally by the package only
# the package contains example files: regions.csv and sample_list.csv
#to load the example regions.csv and sample_list.csv files
regions <- system.file("extdata", "regions.csv", package="CopyNumber450kCancer")
sample_list <- system.file("extdata", "sample_list.csv", package="CopyNumber450kCancer")
# Creat the object for the package
object <- ReadData(regions,sample_list)
#to plot all the regions and all the sampls in one plot
plotRegions(object$regions)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.