adjustedPlot2 {autoReg}R Documentation

Draw a survfitted plot

Description

Draw a survfitted plot

Usage

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

Arguments

fit

An object of class coxph or survfit

se

logical Whether or not show se

mark.time

logical Whether or not mark time

Value

a ggplot

Examples

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

[Package autoReg version 0.3.3 Index]