Use plotly to produce a ROC plot.

plotlyROC(d, predCol, outcomeCol, outcomeTarget, title, ...)

Arguments

d

dataframe

predCol

name of column with numeric predictions

outcomeCol

name of column with truth

outcomeTarget

value considred true

title

character title for plot

...

no unnamed argument, added to force named binding of later arguments.

Value

plotly plot

Examples

d <- data.frame(x= 1:5, y= c(TRUE, FALSE , TRUE, TRUE, TRUE)) plotlyROC(d, 'x', 'y', TRUE, 'example plot')