Skip to contents

Generates the calibration plot from the data needed to print it. This data is generated with the get_calibration_plot_data_surv() and get_calibration_plot_data_prop() functions.

Usage

get_calibration_plot(data)

Arguments

data

Outcome of the get_calibration_plot_data_surv() or get_calibration_plot_data_prop() functions.

Value

ggplot2 object ready to be plotted

Examples

if (FALSE) { # \dontrun{
model |>
  get_calibration_plot_data_surv(data, 10, type = "predictions_aggregated") |>
  get_calibration_plot()

model |>
  get_calibration_plot_data_prop(data, 10, type = "predictions_aggregated") |>
  get_calibration_plot()
} # }