plotInvivoResults: Plot in vivo results

Description Usage Arguments Value Examples

View source: R/plotInvivoResults.R

Description

Function to plot \(a subset of\) the number of in vitro grown SI ASC, with the probability on oncogenic mutation, compared to number of years of in vivo mutation accumulation of SI ASC.

Usage

1
2
3
plotInvivoResults(r, cell_type = "SI", gene = "all", color = "black",
  xlab = "Probability", ylab = "Number of cells", title = "",
  pdf_out)

Arguments

r

Dataframe with results from probDriverMut

gene

Character string to indicate which gene must be plotted

color

Character string for color of line in figure

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 no title

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 probablity on oncogenic mutations against cell numbers and years of in vivo mutation accumulation

Examples

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

invivo_plot = plotInvivoResults(r, gene = "all", color = "red")

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