Learn R Programming

DataVisualizations (version 1.3.3)

ROC: ROC plot

Description

Receiver operating characteristic curve

Usage

ROC(Data, Cls, Names, Colors)

Value

ROCit

List of ROCit results for each score column in Data.

Plot

Plotly object.

Arguments

Data

[1:n, 1:d] numeric vector or matrix of scores to be evaluated with ROC.

Cls

[1:n] numeric vector with true classes.

Names

[1:d] character vector with names for scores.

Colors

[1:d] character vector with colores for scores.

Author

Quirin Stier

Examples

Run this code

Data = runif(1000,0,1)
Cls  = sample(c(0,1), 1000, replace = TRUE)
ROC(Data, Cls)

Run the code above in your browser using DataLab