plotCurve: Plot radiation dose-response curve

Description Usage Arguments Examples

View source: R/plotCurve.R

Description

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

Usage

1
2
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

Examples

1
2
3
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)

RadioGx documentation built on Dec. 20, 2019, 1:06 a.m.