adjustedPlot2: Draw a survfitted plot

View source: R/adjustedPlot.R

adjustedPlot2R 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)

autoReg documentation built on Nov. 14, 2023, 9:07 a.m.