It's hard to diagnose the problem without a reprex
. See the FAQ. Especially since calibrate
is not in base
or stats
, there's no way to know what str(cal_model)
contains and what the calibrate_plot
function expects by way of arguments. It doesn't have to be all the data or even your data if you can find a dataset that shows the same behavior.