plot_precision_recall: Precision recall plot from a cutpointr object

View source: R/plot_precision_recall.R

plot_precision_recallR Documentation

Precision recall plot from a cutpointr object

Description

Given a cutpointr object this function plots the precision recall curve(s) per subgroup, if given.

Usage

plot_precision_recall(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_roc(), plot_sensitivity_specificity(), plot_x()

Examples

library(cutpointr)

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

cutpointr documentation built on April 14, 2022, 1:06 a.m.