I have a list of elements of the class "roc" (l_rocs) which I want to plot with ggroc from the package pROC
library("ggplot2")
library("pROC")
#inside a bigger loop
l_rocs[[names[[i]]]] <- roc(predictor=gbm.probs$Yes,
response=testing$Attrition,
levels=levels(testing$Attrition))
#loop end
ggroc(l_rocs) +
labs(color='Sampling Method'))
I now want to add the AUC for each curve. The best would be right inside the legend but I can not find a way to do it as the given element is a list.
Any advice?


