roc_curve_vec | R Documentation |
Plot the ROC-curve for a vector of probabilities and corresponding observations.
roc_curve_vec(probs, obs, interpolate = TRUE)
probs |
vector with probabilities (between 0 and 1) |
obs |
vector with categorical observations |
interpolate |
logical. If TRUE the ROC-curve is interpolated and drawn as a continuous function. Otherwise it is drawn as a step function. |
a gg object
probs = seq(0,1,length.out = 5)
obs = c(FALSE,FALSE,TRUE,FALSE,TRUE)
pp = roc_curve_vec(probs,obs)
if(interactive()) plot(pp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.