plot_gw_counts: Plot genome-wide mutation counts.

View source: R/plot_genome_wide_mutations.R

plot_gw_countsR Documentation

Plot genome-wide mutation counts.

Description

Plot a genome-wide histogram of mutation counts, binned every one megabase ('1e6' nucleotides).

Usage

plot_gw_counts(x, chromosomes = paste0("chr", c(1:22, "X", "Y")))

Arguments

x

A CNAqc object.

chromosomes

The chromosomes to use for this plot.

Value

A ggplot2 plot.

Examples

data('example_dataset_CNAqc', package = 'CNAqc')
x = init(mutations = example_dataset_CNAqc$mutations, cna = example_dataset_CNAqc$cna, purity = example_dataset_CNAqc$purity)

plot_gw_counts(x)

caravagnalab/CNAqc documentation built on Oct. 31, 2024, 3:54 a.m.