Plot ROC curve and calculate AUC in R at specific cutoff info
问题 Given such data: SN = Sensitivity; SP = Specificity Cutpoint SN 1-SP 1 0.5 0.1 2 0.7 0.2 3 0.9 0.6 How can i plot the ROC curve and calculate AUC. And compare the AUC between two different ROC curves. In the most of the packages such pROC or ROCR, the input of the data is different from those shown above. Can anybody suggest the way to solve this problem in R or by something else? ROCsdat <- data.frame(cutpoint = c(5, 7, 9), TPR = c(0.56, 0.78, 0.91), FPR = c(0.01, 0.19, 0.58)) ## plot