plot_signatures: plot_signatures

plot_signaturesR Documentation

plot_signatures

Description

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.

Usage

plot_signatures(input_data = NULL, Title = NA, label = "Full")

Arguments

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.

Examples

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()

FunGeST/Palimpsest documentation built on June 2, 2024, 4:21 a.m.