View source: R/plot_sample_counts.R
plot_sample_counts | R Documentation |
Displays the proportion of counts for each mutation type across one or more samples.
plot_sample_counts(
musica,
sample_names,
modality = "SBS96",
text_size = 10,
show_x_labels = TRUE,
show_y_labels = TRUE,
same_scale = TRUE,
annotation = NULL,
table_name = NULL
)
musica |
A |
sample_names |
Names of the samples to plot. |
modality |
Name of table used for plotting counts. Default
|
text_size |
Size of axis text. Default |
show_x_labels |
If |
show_y_labels |
If |
same_scale |
If |
annotation |
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 |
table_name |
Use modality instead |
Generates a ggplot object
data(musica_sbs96)
plot_sample_counts(musica_sbs96,
sample_names =
sample_names(musica_sbs96)[1]
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.