plotDNVSignatures: Plot Dinucleotide Variant Signatures or Catalogues

View source: R/DinucleotideVariantsLib.R

plotDNVSignaturesR Documentation

Plot Dinucleotide Variant Signatures or Catalogues

Description

Function to plot one or more DNV signatures or catalogues.

Usage

plotDNVSignatures(
  signature_data_matrix,
  output_file = NULL,
  plot_sum = TRUE,
  overall_title = "",
  add_to_titles = NULL,
  mar = NULL,
  howManyInOnePage = 100,
  ncolumns = 1,
  textscaling = 1
)

Arguments

signature_data_matrix

matrix of signatures or catalogues, signatures as columns and channels as rows. You can use either Zou or Alexandrov Style and the function will recognise the rownames and plot accordingly

output_file

set output file, should end with ".jpg", ".png" of ".pdf". If output_file==null, output will not be to a file, but will still run the plot functions. The option output_file==null can be used to add this plot to a larger output file.

plot_sum

whether the sum of the channels should be plotted. If plotting signatures this should be FALSE, but if plotting sample catalogues, this can be set to TRUE to display the number of mutations in each sample.

overall_title

set the overall title of the plot

add_to_titles

text to be added to the titles of each catalogue plot

mar

set the margin of the plot

howManyInOnePage

how many signatures or catalogues should be plotted on one page. Multiple pages are plotted if more signatures/catalogues to plot have been requested

ncolumns

how many columns should be used to arrange the signatures/catalogues to plot


Nik-Zainal-Group/signature.tools.lib documentation built on April 13, 2025, 5:50 p.m.