Creates a COSMIC signature table for display in an RMarkdown report.
Usage
sig_contribution_table(contr, type, outdir = NULL)
Arguments
- contr
A tibble with Rank, Signature, Contribution and RelFreq columns.
- type
One of Sig (old COSMIC), SBS, DBS or ID.
- outdir
Relative directory to write signature plots to for incorporating
in an RMarkdown report.
Value
The contr
tibble with an additional Plot
column pointing to
the local path to the corresponding signature plot (in markdown syntax).
If outdir = NULL (default), simply return the contr
tibble with the
description of the signature.