Closed harisf closed 3 years ago
Hi @harisf - thank you for bringing this up! This is now fixed the relsurv development branch, which can be downloaded/installed using devtools::install_github("hputter/mstate", ref = "relsurv")
. Otherwise, if you would like a quick-fix with your currently installed version, you can do:
library(mstate)
data("aidssi")
cum_incid <- Cuminc(time = "time", status = "status", data = aidssi)
plot(x = attr(cum_incid, "survfit"), lty = 1:2, xlab = "Time")
Also note that conf.type
does not get passed down to plot.survfit()
, but conf.int
does (where conf.int = NULL
will omit the confidence intervals from the plot).
Arguments like
lty
orxlab
don't get passed along toplot.survfit
in the default case whenuse.ggplot = FALSE
.Example