Learn R Programming

autoReg (version 0.3.3)

adjustedPlot2: Draw a survfitted plot

Description

Draw a survfitted plot

Usage

adjustedPlot2(fit, se = FALSE, mark.time = FALSE)

Value

a ggplot

Arguments

fit

An object of class coxph or survfit

se

logical Whether or not show se

mark.time

logical Whether or not mark time

Examples

Run this code
library(survival)
fit=coxph(Surv(time,status)~rx+logWBC,data=anderson)
plot(survfit(fit),conf.int=TRUE)
adjustedPlot2(fit,se=TRUE)

Run the code above in your browser using DataLab