plot.survcut | R Documentation |
Plots Kaplan-Meier curves for the variable strata or a series of diagnostic plots visualizing the optimization process.
## S3 method for class 'survcut' plot( x, type = c("km", "diagnostic"), palette = c("steelblue", "firebrick"), ggtheme = survminer::theme_survminer(), ... )
x |
a survcut object. |
type |
plot type: 'km' plots a Kaplan-Meier plot, 'diagnostic' generates optimization plots. |
palette |
a color palette used in the Kaplan-Meier plot. |
... |
extra arguments passed to |
For Kaplan-Meier plots, a wrapper around
ggsurvplot
. Cutoff and p values are presented in the
plot subtitle, complete observation counts are shown in the plot tag.
If more cutoffs were identified, returns a list with the Kaplan-Meier plots.
a ggplot or a list of ggplots.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.