Description Usage Arguments Value Examples
View source: R/plotMutationsPerCell.R
Function to plot \(a subset of\) the results from calcCellNumb
, calcMutEvents
and
probDriverMut
. Unit is cells
1 2 3 | plotMutationsPerCell(r, xmax, ymax, logscale = c("x", "y"), vline = F,
hline = F, xlab = "Number of cells",
ylab = "Number of SNVs in oncogenes", title = "", pdf_out)
|
r |
Dataframe with results from |
xmax |
Numeric with x-axis maximum |
ymax |
Numeric with y-axis maximum |
logscale |
(Optional) Character vector indicating which axes must be set to
logscale. Default is |
vline |
Numeric vector with vertical lines |
hline |
Numeric vector with horizontal lines |
xlab |
Character string with label for x-axis. Default is |
ylab |
Character string with label for y-axis. Default is |
title |
Character string with title of figure. Default is |
pdf_out |
Character with file name where to save the figure. If not given, figure will not be saved, only returned from function |
Plot of mutational events against cell numbers.
1 2 3 | r = data.frame(cells = calcCellNumb, muts = calcMutEvents, probs = probDriverMut)
mutation_plot = plotMutationsPerCell(r, xmax = 1e13, ymax = 1e4, hline = 1, vline = 1e6)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.