plot_sensitivity_specificity: Sensitivity and specificity plot from a cutpointr object

View source: R/plot_sensitivity_specificity.R

plot_sensitivity_specificityR Documentation

Sensitivity and specificity plot from a cutpointr object

Description

Given a cutpointr object this function plots the sensitivity and specificity curve(s) per subgroup, if the latter is given.

Usage

plot_sensitivity_specificity(x, display_cutpoint = TRUE, ...)

Arguments

x

A cutpointr object.

display_cutpoint

(logical) Whether or not to display the optimal cutpoint as a dot on the precision recall curve.

...

Additional arguments (unused).

See Also

Other cutpointr plotting functions: plot.cutpointr(), plot_cut_boot(), plot_cutpointr(), plot_metric_boot(), plot_metric(), plot_precision_recall(), plot_roc(), plot_x()

Examples

library(cutpointr)

## Optimal cutpoint for dsi
data(suicide)
opt_cut <- cutpointr(suicide, dsi, suicide)
plot_sensitivity_specificity(opt_cut)

Thie1e/cutpointr documentation built on April 17, 2022, 3:20 a.m.