Learn R Programming

BayesianReasoning (version 0.4.2)

remove_layers_cutoff_plot: remove_layers_cutoff_plot Remove layers from a cutoff plot. This is useful to show how different things are calculated (e.g. Sensitivity)

Description

remove_layers_cutoff_plot Remove layers from a cutoff plot. This is useful to show how different things are calculated (e.g. Sensitivity)

Usage

remove_layers_cutoff_plot(cutoff_plot, delete_what, silent = TRUE)

Value

a cutoff plot without the elements deleted

Arguments

cutoff_plot

A plot_cutoff() plot

delete_what

Elements to delete (i.e. FP, FN, TP, TN)

silent

TRUE do not show debug info

Examples

Run this code
if (FALSE) {
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)")
}

Run the code above in your browser using DataLab