Description Usage Arguments Value
View source: R/plot_signatures.R
A helper function for plotting ID83 / SBS96 plots.
1 2 3 4 5 6 7 8 9 10 | generate_plot(
x,
label = "Signature",
title = "",
xlabel = NULL,
ylabel = "Count",
usePercent = TRUE,
ylimits = NULL,
contextType = "SBS96"
)
|
x |
A TidySig dataframe/tibble |
label |
The right-side (i.e., facet) label. Usually "Signature" or "Sample" or a sample ID. |
title |
A title for the plot |
xlabel |
An x-axis label |
ylabel |
A y-axis label |
usePercent |
Use percent scales (rather than counts) |
ylimits |
Use custom ylimits (useful for normalizing the views of multiple signatures). Takes a numeric vector length-two. |
contextType |
An argument for determining the context, either ID83 or SBS96 |
a ggplot2 object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.