remove_layers_cutoff_plot: remove_layers_cutoff_plot Remove layers from a cutoff plot....

View source: R/plot_cutoff.R

remove_layers_cutoff_plotR Documentation

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)

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

Value

a cutoff plot without the elements deleted

Examples

## 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)

BayesianReasoning documentation built on Nov. 14, 2023, 5:09 p.m.