View source: R/show_cn_distribution.R
show_cn_distribution | R Documentation |
Visually summarize copy number distribution either by copy number segment length
or chromosome. Input is a CopyNumber object, genome_build
option will
read from genome_build
slot of object.
show_cn_distribution(
data,
rm_normal = TRUE,
mode = c("ld", "cd"),
fill = FALSE,
scale_chr = TRUE,
base_size = 14
)
data |
a CopyNumber object. |
rm_normal |
logical. Whether remove normal copy (i.e. "segVal" equals 2), default is |
mode |
either "ld" for distribution by CN length or "cd" for distribution by chromosome. |
fill |
when |
scale_chr |
logical. If |
base_size |
overall font size. |
a ggplot
object
Shixiang Wang w_shixiang@163.com
# Load copy number object
load(system.file("extdata", "toy_copynumber.RData",
package = "sigminer", mustWork = TRUE
))
# Plot distribution
p1 <- show_cn_distribution(cn)
p1
p2 <- show_cn_distribution(cn, mode = "cd")
p2
p3 <- show_cn_distribution(cn, mode = "cd", fill = TRUE)
p3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.