Plot the survival estimation for an trSurvfit/trReg object.

# S3 method for trSurvfit
plot(x, ...)

Arguments

x

an object of class trSurvfit returned by the trSurvfit() or the trReg() function.

...

graphical parameters to be passed to methods.

Value

A ggplot object.

Examples

data(channing, package = "boot") chan <- subset(channing, entry < exit) plot(trReg(Surv(entry, exit, cens) ~ 1, data = chan))
plot(with(chan, trSurvfit(entry, exit, cens)))
plot(trReg(Surv(entry, exit, cens) ~ sex, data = chan))
plot(trReg(Surv(entry, exit, cens) ~ sex, data = chan, method = "adjust", control = list(G = 10)))