plotROC2 | R Documentation |
This function plots a ROC curve with ggplot2.
plotROC2(
x,
...,
ylab = "Sensitivity (TPR)",
xlab = if (legacy.axes) "1-Specificity (FPR)" else "Specificity (FPR)",
main = NULL,
lwd = 1.1,
size = lwd,
col = NULL,
colour = if (is.null(col)) "gray50" else col,
include.facet_wrap = FALSE,
legend.position = "bottom",
include.labels = TRUE,
include.table = FALSE,
include.order = TRUE,
caption = "Optimal cut-point: Area Under the Curve (AUC), Youden Index (YI).",
legacy.axes = TRUE,
ann.segment = if (legacy.axes) c(0, 1, 0, 1) else c(0, 1, 1, 0)
)
x |
a roc object from the roc function, or a list of roc objects. |
... |
description |
ylab , xlab , main |
character. false positive fraction = FPF |
lwd , size |
numeric. lwd |
col , colour |
character. Farbe colour ist für singel |
include.facet_wrap |
logical. facet |
legend.position |
character. position |
include.labels |
logical.mit Label()erstellte Beschriftungen TRUE/FALSE |
include.table , caption |
logical. Tabelle Ausgeben |
include.order |
logical. sortieren nach auc true positive fraction = TPF |
legacy.axes , ann.segment |
logical. x-achse 0 bis 1 oder 1 bis 0, ann.segment = annotate("segment") |
Stolen from ggroc.roc pROC
Calculate the empirical Receiver Operating Characteristic curve
Given a binary outcome d and continuous measurement m, computes the empirical ROC curve for assessing the classification accuracy of m
Some R Packages for ROC Curves: https://rviews.rstudio.com/2019/03/01/some-r-packages-for-roc-curves/
ggplot
require(pROC)
data(aSAH)
roc(outcome ~ s100b, data=aSAH) |>
plotROC2()
# mehr Beispiele unter ?Tbll_roc
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.