addRates {RBPcurve}R Documentation

Visualizes the TPR and FPR on the RBP curve.

Description

For a given threshold tresh, the true positive rate (TPR) and the false positive rate (FPR) can be visually assessed by the RBP curve by the intersection of the RBP curve with the horizontal lines at -thresh and 1 - thresh, respectively.

Usage

addRates(obj, plot.values = TRUE, digits = 3L, col = "black",
  thresh = obj$prev, thresh.label = "thresh")

Arguments

obj

[RBPObj]
Data container for RBP curve.

plot.values

[logical(1)]
Whether the values of the corresponding measure should be added to the plot? Default is FALSE.

digits

[numeric(1)]
Indicates the number of decimal places for the values that are plotted when plot.values = TRUE. Default is 3L.

col

[character(1) | numeric(1)]
A specification for the plotting color.

thresh

[numeric(1)]
Threshold that is used to compute the true positve and false positive rate. Default is prevalence.

thresh.label

[character(1)]
The label for the threshold that is plotted when plot.values = TRUE.

Value

[invisible(NULL)].


[Package RBPcurve version 1.2 Index]