roc_plot | R Documentation |
This code builds off of code written by Vincent Guillemot found here: https://rpubs.com/vguillem/465086.
roc_plot(df, outcome, prediction, ci = FALSE, plot_title = "")
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. |
ci |
Show confidence interval ribbon. Defaults to FALSE. |
plot_title |
A character string containing the title for the resulting plot. |
A ggplot containing the calibration plot
data(single_model_dataset)
roc_plot(single_model_dataset, outcome = 'outcomes', prediction = 'predictions', ci = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.