Description Usage Arguments Value Examples
This code builds off of code written by Darren Dahly, PhD in this blog post: https://darrendahly.github.io/post/homr/.
1 2 3 4 5 6 7 8 9 |
df |
The df as a data.frame. |
outcome |
A character string containing the name of the column containing the outcomes (expressed as 0/1s). |
prediction |
A character string containing the name of the column containing the predictions. |
n_bins |
Number of bins. Defaults to 10. Set to 0 to hide binned calibration. |
show_loess |
Whether to show loess smoothed calibration estimates.
Defaults to FALSE. For |
plot_title |
A character string containing the title for the resulting plot. |
A ggplot containing the calibration plot
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.