View source: R/plot_karyotypes.R
plot_karyotypes | R Documentation |
Plot a barplot for the segments, reporting either their counts of the proportion of genome covered.
plot_karyotypes(
x,
type = "percentage",
chromosomes = paste0("chr", c(1:22, "X", "Y"))
)
x |
A CNAqc object. |
type |
With |
chromosomes |
The chromosome to use for this plot. |
A ggplot2
plot.
data('example_dataset_CNAqc', package = 'CNAqc')
x = init(mutations = example_dataset_CNAqc$mutations, cna = example_dataset_CNAqc$cna, purity = example_dataset_CNAqc$purity)
# All chromosomes (default)
plot_karyotypes(x)
# Specific chromosomes
plot_karyotypes(x, chromosomes = 'chr3')
plot_karyotypes(x, chromosomes = 'chr13')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.