Skip to contents

Function to visualize the input and reconstructed mutation counts.

Usage

plot_data(
  x,
  types = get_types(x),
  samples = get_samples(x),
  clusters = get_cluster_labels(x),
  reconstructed = TRUE,
  color_by_sigs = FALSE
)

Arguments

x

bascule object.

types

List of variant types to visualize.

samples

List of samples to visualize.

clusters

List of clusters to visualize.

reconstructed

Logical. If `TRUE`, the reconstructed counts, i.e., computed as alpha x beta, will be visualized.

color_by_sigs

Logical. If `TRUE`, each context will report the number of mutations split by signature.

Value

ggplot object.