plotMutationsPerCell: Plot results per cell

Description Usage Arguments Value Examples

View source: R/plotMutationsPerCell.R

Description

Function to plot \(a subset of\) the results from calcCellNumb, calcMutEvents and probDriverMut. Unit is cells

Usage

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)

Arguments

r

Dataframe with results from probDriverMut

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 c("x","y")

vline

Numeric vector with vertical lines

hline

Numeric vector with horizontal lines

xlab

Character string with label for x-axis. Default is
"Number of cells"

ylab

Character string with label for y-axis. Default is
"Number of SNVs in oncogenes"

title

Character string with title of figure. Default is
"Mutation accumulation of driver gene mutations"

pdf_out

Character with file name where to save the figure. If not given, figure will not be saved, only returned from function

Value

Plot of mutational events against cell numbers.

Examples

1
2
3
r = data.frame(cells = calcCellNumb, muts = calcMutEvents, probs = probDriverMut)

mutation_plot = plotMutationsPerCell(r, xmax = 1e13, ymax = 1e4, hline = 1, vline = 1e6)

bastiaanvdroest/DriverProbabilities documentation built on Dec. 8, 2019, 10:29 a.m.