Based on: http://blog.revolutionanalytics.com/2016/08/roc-curves-in-two-lines-of-code.html

calcPR(modelPredictions, yValues)

Arguments

modelPredictions

numeric predictions (not empty)

yValues

logical truth (not empty, same lenght as model predictions)

Value

line graph, point graph, and summaries

Details

See also https://github.com/WinVector/sigr