Closed austin3dickey closed 7 years ago
Thanks Austin! Could you paste some example plots here?
Example plots:
library(ROCR)
data("ROCR.xval")
pred <- ROCR::prediction(ROCR.xval$predictions,
ROCR.xval$labels)
for (perfObj in c(performance(pred, 'acc'),
performance(pred, 'tpr', 'fpr'),
performance(pred, 'auc'))) {
plot(perfObj, main = 'Base plotter', colorize = TRUE)
autoplot(perfObj, main = 'autoplot')
}
Base plot for the third object gets this error: Error in .plot.performance: Performance object cannot be plotted.
Thanks!! Merged!
Added methods for fortify and autoplot to support performance objects from the ROCR package.