Nothing
RcmdrPlugin.KMggplot2 depends survfit function of survival package.
Dataset requirements are same as survfit function, which works with Surv objects.
Surv objectSurv objects are generated from Surv function.
RcmdrPlugin.KMggplot2 calls as follows:
survfit(Surv(time = x, event = y, type = "right") ~ z + s + t, .df)
timeeventtypeRcmdrPlugin.KMggplot2 can only handle "right" censoring.z, s, tz) and the facet (s, t) variables (factor variables)..dfRcmdrPlugin.KMggplot2 requires a data frame that at least includes time and event variables, and includes z, s, t if you needs
data(dataKm, package = "RcmdrPlugin.KMggplot2") exampleData <- dataKm[, c("time", "event", "trt", "sex", "marker")] knitr::kable(head(exampleData, 10))
In this case:
time: "time"event: "event" (0 = alive (censor), 1 = dead (event))z, s, or t: "trt", "sex", or "marker"Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.