Description Usage Arguments Value
Ggplot method for tidysurv objects
1 2 3 | ## S3 method for class 'tidysurv'
ggplot(data, mapping = NULL, type = "cumulative", ...,
environment = parent.frame())
|
data |
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
|
... |
Further arguments to be passed to ggplot |
environment |
See |
A ggplot object without any layers, but with sensible defaults for aesthetic mappings: each distinct predictor in a group (with distinct colors), and (if a competing risk model) each state in a separate group (with distinct line-types).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.