View source: R/survival_operations.R
plot.surv_obj | R Documentation |
Plot general survival models
## S3 method for class 'surv_obj'
plot(
x,
times,
type = c("surv", "prob"),
join_col = "red",
join_pch = 20,
join_size = 3,
...
)
x |
a survival object of class |
times |
Times at which to evaluate and plot the survival object. |
type |
either |
join_col, join_pch, join_size |
graphical parameters for points marking points at which different survival functions are joined. |
... |
additional arguments to pass to |
The function currently only highlights join points that are at
the top level; that is, for objects with class surv_projection
.
To avoid plotting the join points, set join_size to a negative number.
a ggplot2::ggplot()
object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.