lines.survfit {survival} | R Documentation |
plot.survfit
. x | a survival object, generated from the survfit or survexp functions. |
type | the line type, as described in lines . The default is a step function for survfit objects, and a connected line for survexp objects.All other arguments for lines.survexp are identical to thosefor lines.survfit . |
col, lty, lwd, cex | vectors giving the mark symbol, color, line type, line width andcharacter size for the added curves. Of this set only color isapplicable to points . |
pch | plotting characters for points, in the style of matplot , i.e., either a single string of characters of whichthe first will be used for the first curve, etc; or a vectorof characters or integers, one element per curve. |
mark | a historical alias for pch |
censor | should censoring times be displayed for the points function? |
.. | other graphical parameters |
mark.time | controls the labeling of the curves. If FALSE , no labeling is done. If TRUE , then curves are marked at each censoring time. If mark.time is a numeric vector, then curves are marked at the specified time points. |
fun | an arbitrary function defining a transformation of the survival curve. For example fun=log is an alternative way to draw a log-survival curve (but with the axis labeled with log(S) values). Four often used transformations can be specified with a character argument instead: 'log' is the same as using the log=T option, 'event' plots cumulative events (f(y) = 1-y), 'cumhaz' plots the cumulative hazard function (f(y) = -log(y)) and 'cloglog' creates a complimentary log-log survival plot (f(y) = log(-log(y))) along with log scale for the x-axis. |
conf.int | if TRUE , confidence bands for the curves are also plotted. If set to 'only' , then only the CI bands are plotted, and the curve itself is left off. This can be useful for fine control over the colors or line types of aplot.A numeric value, e.g. conf.int = .90 , can be used to |
conf.times | optional vector of times at which to place aconfidence bar on the curve(s). If present, these will be usedinstead of confidence bands. |
conf.cap | width of the horizontal cap on top of the confidencebars; only used if conf.times is used. A value of 1 is the width ofthe plot region. |
conf.offset | the offset for confidence bars, when there aremultiple curves on the plot. A value of 1 is the width of the plotregion. If this is a single number then each curve's bars are offsetby this amount from the prior curve's bars, if it is a vector the values areused directly. |
conf.type | One of 'plain' , 'log' (the default),'log-log' , 'logit' , or 'none' . Onlyenough of the string to uniquely identify it is necessary.The first option causes confidence intervals not to begenerated. The second causes the standard intervalscurve +- k *se(curve) , where k is determined fromconf.int . The log option calculates intervals based on thecumulative hazard or log(survival). The log-log option bases theintervals on the log hazard or log(-log(survival)), and thelogit option on log(survival/(1-survival)). |
noplot | for multi-state models, curves with this label will notbe plotted. The default corresponds to an unspecified state. |
cumhaz | plot the cumulative hazard, rather than the survival orprobability in state. |
survfit
function creates a multi-state survival curvethe resulting object has class ‘survfitms’. The only difference inthe plots is that that it defaults to a curve that goes from lowerleft to upper right (starting at 0), where survival curves defaultto starting at 1 and going down. All other options are identical.x
and y
, containing the coordinates of the last point on each of the curves (but not of the confidence limits). This may be useful for labeling. lines
, par
, plot.survfit
, survfit
, survexp
.