addPrevalence {RBPcurve}R Documentation

Visualizes the prevalence on the RBP curve.

Description

The prevalence is the proportion of a population having a specific condition. In binary classification, the condition refers to whether the target variable has the value 1, that is, whether the target variable corresponds to the positive class.

Usage

addPrevalence(obj, plot.values = TRUE, digits = 3L, col = "grey")

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.

Value

[invisible(NULL)].


[Package RBPcurve version 1.2 Index]