powered by
This plots a Curve Survival Function
# S4 method for Curve plotSF( theObject, overlay = FALSE, maxT = 100, minSF = 0, increment = 0.1, xlab = "Time", ylab = "S(t)", main = "Kaplan Meier plot", type = "l", ... )
The name of the RCurve Object
Boolean whether to overlay on existing one (vs start a new one). Default=FALSE
Maximum time to plot up to. Default=100
Minimum SF to plot down to. Default=0
Plotting time increment. Default=0.1
X-axis label. Default="Time"
Y-axis label. Default="S(t)"
title of plot. Default="Kaplan Meier plot"
type of plot (see standard graphical parameters). Default="l" (lines).
Standard graphical parameter arguments to be passed on to 'plot'/'lines', e.g. to change appearance of plot.
plotSF(Weibull(100,1)) plotSF(Weibull(100,1),xlab="Test x label",maxT=60) plotSF(Weibull(80,0.8),overlay=TRUE,col=2,lty=2)
Run the code above in your browser using DataLab