View source: R/plot_genome_wide_mutations.R
plot_gw_ccf | R Documentation |
Plot a genome-wide scatter plot of mutation CCFs, if availbale. The function can randomly subset the points to show.
plot_gw_ccf(x, N = 5000, chromosomes = paste0("chr", c(1:22, "X", "Y")))
x |
A CNAqc object. |
N |
Mutations to use, randomly sampled. |
chromosomes |
The chromosomes 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)
# Compute CCFs
x = compute_CCF(x)
plot_gw_ccf(x)
# Downsampling examples
plot_gw_ccf(x, N = 100)
plot_gw_ccf(x, N = 1000)
plot_gw_ccf(x, N = 10000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.