mplot3_surv | R Documentation |
mplot3
: Survival PlotsPlots survival step functions using mplot3_xy
mplot3_surv(
x,
lty = 1,
lwd = 2,
alpha = 1,
col = NULL,
mark.censored = TRUE,
normalize.time = FALSE,
cex = 1.2,
xlab = NULL,
ylab = "Survival",
main = "Kaplan-Meier curve",
theme = rtTheme,
palette = rtPalette,
plot.error = FALSE,
error.lty = 2,
error.alpha = 0.5,
group.legend = NULL,
group.title = "",
group.names = NULL,
group.side = 3,
group.adj = 0.98,
group.padj = 2,
group.at = NA,
par.reset = TRUE,
...
)
x |
Survival object / list of Survival objects created using |
lty |
Integer: Line type. Default = 1. See |
lwd |
Float: Line width. Default = 2 |
alpha |
Float: Alpha for lines. Default = 1 |
normalize.time |
Logical: If TRUE, convert each input's time to 0-1 range. This is useful when survival estimates are not provided in original time scale. Default = FALSE. |
xlab |
Character: x-axis label |
ylab |
Character: y-axis label |
main |
Character: Plot title |
theme |
Character: Run |
palette |
Vector of colors, or Character defining a builtin palette -
get options with |
group.legend |
Logical: If TRUE, place |
group.title |
Character: Group title, shown above group names. e.g.
if group names are c("San Francisco", "Philadelphia"), |
group.names |
(Optional) If multiple groups are plotted, use these
names if |
group.side |
Integer: Side to show group legend |
group.adj |
Float: |
group.padj |
Float: |
group.at |
Float: location for group legend. See |
par.reset |
Logical: If TRUE, reset |
... |
Additional arguments to pass to mplot3_xy |
E.D. Gennatas
## Not run:
library(survival)
mplot3_surv(Surv(time = lung$time, event = lung$status))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.