View source: R/plot_dbs_contexts.R
plot_dbs_contexts | R Documentation |
Plot the DBS contexts
plot_dbs_contexts(counts, same_y = FALSE, condensed = FALSE)
counts |
A tibble containing the number of DBS per COSMIC context. |
same_y |
A boolean describing whether the same y axis should be used for all samples. |
condensed |
More condensed plotting format. Default = F. |
Plots the number of DBS COSMIC context per sample. It takes a tibble with counts as its input. This tibble can be generated by count_dbs_contexts Each sample is plotted in a separate facet. The same y axis can be used for all samples or a separate y axis can be used.
A ggplot figure.
count_dbs_contexts
, plot_main_dbs_contexts
Other DBS:
count_dbs_contexts()
,
get_dbs_context()
,
plot_compare_dbs()
,
plot_main_dbs_contexts()
## Get The DBS counts ## See 'count_dbs_contexts()' for more info on how to do this. dbs_counts <- readRDS(system.file("states/blood_dbs_counts.rds", package = "MutationalPatterns" )) ## Plot contexts plot_dbs_contexts(dbs_counts) ## Use the same y axis for all samples. plot_dbs_contexts(dbs_counts, same_y = TRUE) ## Create a more condensed plot plot_dbs_contexts(dbs_counts, condensed = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.