Learn R Programming

IDPSurvival (version 1.2.2)

plot.isurvfit: Plot method for isurvfit objects

Description

A plot of survival curves is produced, one curve for each strata.

Usage

# S3 method for isurvfit
plot(x, se.fit=TRUE, ...)

Arguments

x

an object of class isurvfit, usually returned by the isurvfit function.

se.fit

determines whether confidence intervals will be plotted.

...

other arguments passed to the standard plot function

See Also

isurvfit

Examples

Run this code
leukemia.surv <- isurvfit(Surv(time, status) ~ x, data = aml, display=FALSE) 
plot(leukemia.surv) 
legend(100, .9, c("Maintenance", "No Maintenance"), 
       lty=c(1,1),lwd=c(2,1),col=c('black','red'),pch=c(1,2)) 
title("IDP Curves\nfor AML Maintenance Study") 

Run the code above in your browser using DataLab