plot_signatures | R Documentation |
Function to plot signature profiles of all mutation types (SBS, DBS or Indel - there is a different function for plotting SV signatures). N.B. recommended output width to height ratio of 24:7 must be maintained to keep labels at the correct size.
plot_signatures(input_data = NULL, Title = NA, label = "Full")
input_data |
Matrix of signature(s) to plot, or an individual sample's proportion of each mutation category. If you receive an input_data related error retry with t(input_data). |
Title |
List (must be same length as number of input signatures) or single title to use. Leave blank to use rownames from input matrix. Use " " for no title. |
label |
"Full" for all labels (default), "Top" for just coloured bars atop the plot; "None" for just bar graph. |
pdf(file=paste0(resdir,"SBS_liver_signature_profiles.pdf"),width=24,height=7)
plot_signatures(input_data = SBS_liver,Title = rownames(SBS_liver))
dev.off()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.