powered by
fit_models
Plot method for fit_models
# S3 method for fit_models plot( x, eval_time = NULL, km_include = TRUE, subtitle_include = TRUE, add_plotly = FALSE, ... )
A list containing predictions and plots for the survival and hazards of models in a fit_models object.
An object of class fit_models
Time points at which to evaluate the survival function. Default is NULL.
NULL
Logical value indicating whether to include Kaplan-Meier survival data. Default is TRUE.
TRUE
Logical value indicating whether to include a subtitle in the plot. Default is TRUE.
Logical value indicating whether to add plotly interactivity. Default is FALSE.
FALSE
Additional arguments
models <- fit_models( data = easysurv::easy_bc, time = "recyrs", event = "censrec", predict_by = "group", covariates = "group" ) plot(models)
Run the code above in your browser using DataLab