pROC_quick_plot: Plots an ROC model

View source: R/utils-pROC.R

pROC_quick_plotR Documentation

Plots an ROC model

Description

Quickly plots a model based on my own liking

Usage

pROC_quick_plot(
  mod,
  thres_method = c("youden", "closest.topleft"),
  col = "blue",
  ...,
  boots = 0L
)

Arguments

mod

An object with class "roc" (a ROC model made with [pROC::roc()])

thres_method

The threshold method to print

col

The color of the curve

...

Additional arguments passed to [pROC::plot.roc()]

boots

Number of bootstrap replications to perform; if < 2L will not perform any

Details

When adding bootstrapped confidence intervals, the core function of 'pROC:::ci.sp.roc()' is replaced with a quicker version that uses parallel processing to speed up the bootstraps and some other data manipulation. There will likely be a delay when running with bootstraps.

Examples

if (mark::package_available("pROC")) {
  x <- pROC::aSAH
  mod <- pROC::roc(x$outcome, x$s100b, levels = c("Good", "Poor"))
  pROC_quick_plot(mod)
## Not run: 
  pROC_quick_plot(mod, boots = 100)

## End(Not run)
}

jmbarbone/jordanExtra documentation built on Aug. 4, 2023, 5:37 p.m.