Displays the proportion of counts for each mutation type across one or more samples.
plot_sample_counts(
musica,
sample_names,
table_name = NULL,
text_size = 10,
show_x_labels = TRUE,
show_y_labels = TRUE,
same_scale = TRUE,
annotation = NULL
)A musica object.
Names of the samples to plot.
Name of table used for plotting counts. If NULL,
then the first table in the musica object will be used.
Default NULL.
Size of axis text. Default 10.
If TRUE, the labels for the mutation types
on the x-axis will be shown. Default TRUE.
If TRUE, the y-axis ticks and labels will be
shown. Default TRUE.
If TRUE, the scale of the y-axis for each
sample will be the same. If FALSE, then the scale of the y-axis
will be adjusted for each sample. Default TRUE.
Vector of annotations to be displayed in the top right
corner of each sample. Vector length must be equivalent to the number of
samples. Default NULL.
Generates a ggplot object
data(musica_sbs96)
plot_sample_counts(musica_sbs96, sample_names =
sample_names(musica_sbs96)[1])