Learn R Programming

CFAssay (version 1.6.0)

plot.cellsurvLQfit: Plot of an LQ model fit

Description

This function plots a cell survival curve derived from fitting an LQ model with function cellsurvLQfit

Usage

"plot"(x, xlim = NULL, ylim = c(0.008, 1), xlab = "Dose (Gy)", ylab = "Survival (1 = 100%)",col=1, pch=1, add=FALSE, ...)

Arguments

x
an object of class cellsurvLQfit resulting from function cellsurvLQfit.
xlim
plot range for the x-axis. Default is the dose range of the data.
ylim
plot range for the y-axis. Default is from 0.008 to 1.0
xlab
label for the x-axis. Default is "Dose (Gy)".
ylab
label for the y-axis. Default is "Survival (1 = 100%)".
col
colour for plot. Default is col = 1.
pch
symbol for plotting points. Default is pch = 1.
add
logical; if TRUE add to an already existing plot, see curve.
...
further arguments to pass to R function plot.

See Also

cellsurvLQfit

Examples

Run this code
datatab<- read.table(system.file("doc", "expl1_cellsurvcurves.txt", package="CFAssay"), header=TRUE, sep="\t")
X<- subset(datatab, cline=="okf6TERT1")
fit<- cellsurvLQfit(X)
plot(fit)
S0 <- pes(X)$S0
names(S0) <- pes(X)$Exp
sfpmean(X, S0) #values of plotted mean survival fractions and error bars 
# add second plot
plot(cellsurvLQfit(subset(datatab, cline=="cal33")), col=2, add=TRUE)

Run the code above in your browser using DataLab