Description Usage Arguments Value Author(s) See Also Examples
View source: R/add_risktable.R
S3 method for adding risk tables to visR plots. No default method is available at the moment.
1 2 3 4 5 6 7 8 9 10 | add_risktable(gg, ...)
## S3 method for class 'ggsurvfit'
add_risktable(
gg,
min_at_risk = 0,
time_ticks = NULL,
display = c("n.risk"),
title = c("Subjects at risk")
)
|
gg |
visR plot of class 'ggsurvfit' |
... |
other arguments passed on to the method |
min_at_risk |
|
time_ticks |
Numeric vector with the points along the x-axis at which the summary data needs to be provided. |
display |
Character vector indicating which summary data to present. Current choices are "n.risk" "n.event" "n.censor". |
title |
Character vector with titles for the summary tables. |
Object of class ggplot
with added risk table.
Steven Haesendonckx
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.