roc_line: A function to add an ROC curve to an existing ROC plot.

View source: R/roc_line.R

roc_lineR Documentation

A function to add an ROC curve to an existing ROC plot.

Description

A function to add an ROC curve to an existing ROC plot.

Usage

roc_line(cp, ca, byDR = FALSE, cumdata = FALSE, ...)

Arguments

cp

A vector of cp id rates or frequencies.

ca

A vector of ca id rates or frequencies.

byDR

Whether to order ids by diagnosticity ratios. Defaults to FALSE.

cumdata

Whether to output the cumulative data that are used to create the ROC curves. Default to FALSE.

...

Additional plotting parameters. For example, users can change x-axis and y-axis labels using xlab and ylab.

Value

Plot ROC curves and calculate AUCs as side effects.


yuerany/fullROC documentation built on March 24, 2023, 4:11 a.m.