plotCurve: Plot radiation dose-response curve

View source: R/plotCurve.R

plotCurveR Documentation

Plot radiation dose-response curve

Description

This function plots doses of radiation against the cancer cell survival fractions thereby observed.

Usage

plotCurve(
  D,
  SF,
  pars,
  filename = "dose_response_plot.pdf",
  fit_curve = TRUE,
  SF_as_log = TRUE
)

Arguments

D

vector of radiation doses

SF

vector of survival fractions corresponding to the doses

pars

parameters (alpha, beta) in the equation SF = exp(-alpha * D - beta * D ^ 2)

filename

name of PDF which will be created by the function

fit_curve

should the graph include a linear-quadratic curve of best fit? Defaults to TRUE

SF_as_log

should SF be expressed in log10 on the graph? Defaults to TRUE

Value

nothing Function works by side effects only

Examples

plotCurve(c(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10),
  c(1.1, 0.8, 0.7, 0.45, 0.15, -0.1, -0.1, -0.4, -0.65, -0.75, -1.1),
  filename = NULL)


bhklab/RadioGx documentation built on Oct. 6, 2023, 8:27 a.m.