remove_layers_cutoff_plot | R Documentation |
remove_layers_cutoff_plot Remove layers from a cutoff plot. This is useful to show how different things are calculated (e.g. Sensitivity)
remove_layers_cutoff_plot(cutoff_plot, delete_what, silent = TRUE)
cutoff_plot |
A plot_cutoff() plot |
delete_what |
Elements to delete (i.e. FP, FN, TP, TN) |
silent |
TRUE do not show debug info |
a cutoff plot without the elements deleted
## Not run:
PLOT = plot_cutoff(prevalence = 0.2)
remove_layers_cutoff_plot(PLOT$final_plot, delete_what = c("FN", "TP")) +
ggplot2::labs(subtitle = "Specificity = TN/(TN+FP)")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.