Description Usage Arguments Value
Plot a tidysurv object
1 2 3 |
x |
A tidysurv object |
mapping |
An aesthetic mapping for ggplot, created by one of the |
type |
What type of plot? Cumulative/survival, or rate? If the latter, need to have set
|
states |
For a competing risks model: which states should be included in the graph? |
... |
Further arguments to be passed to ggplot |
A ggplot object, with lines for each survival curve, and ribbons for confidence bands.
Defaults to a separate survival curve (with a distinct color) for each unique combination of
predictors that was passed to tidysurv
. Also grouped by '.surv_state' for competing risk models,
with the linetype indicating which state.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.