Closed JohannesNE closed 5 years ago
If i add a geom_abline() before the plot_roc() layer, calc_auc() does not work.
> ggroc <- ggplot(rocdata, aes(m = M, d = D)) + + geom_abline(intercept = 0, slope = 1) + + geom_roc() > calc_auc(ggroc) [1] PANEL group AUC <0 rows> (or 0-length row.names)
@JohannesNE which version of plotROC are you using?
The CRAN version. Updated to the dev version (2.2.1) and now it works flawlessly. Sorry for not testing that.
If i add a geom_abline() before the plot_roc() layer, calc_auc() does not work.