Description Usage Arguments Details Value See Also Examples
View source: R/plot_main_indel_contexts.R
Plot the main indel contexts
1 | plot_main_indel_contexts(counts, same_y = FALSE)
|
counts |
A tibble containing the number of indels per COSMIC context. |
same_y |
A boolean describing whether the same y axis should be used for all samples. |
Plots the number of indels per main COSMIC context per sample. The contexts are not subdivided into the number of repeats/microhomology length. It takes a tibble with counts as its input. This tibble can be generated by count_indel_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_indel_contexts
, plot_indel_contexts
Other Indels:
count_indel_contexts()
,
get_indel_context()
,
plot_compare_indels()
,
plot_indel_contexts()
1 2 3 4 5 6 7 8 9 10 11 | ## Get The indel counts
## See 'count_indel_contexts()' for more info on how to do this.
indel_counts <- readRDS(system.file("states/blood_indel_counts.rds",
package = "MutationalPatterns"
))
## Plot contexts
plot_main_indel_contexts(indel_counts)
## Use the same y axis for all samples.
plot_main_indel_contexts(indel_counts, same_y = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.