ROC package in R
Post date: Jun 19, 2014 4:32:35 AM
So far I think package ROCR is the best.
http://rocr.bioinf.mpi-sb.mpg.de/ROCR.pdf
# plotting a ROC curve: library(ROCR) data(ROCR.simple) pred <- prediction( ROCR.simple$predictions, ROCR.simple$labels ) ## -- use slot to access the value -- threshold <- pred@cutoffs[[1]] tp <- pred@tp[[1]] ## --- precision vs recall --- precision <- performance( pred, "prec") prec <- precision@y.values[[1]] recall <- performance( pred, "rec") rec <- recall@y.values[[1]] plot(x=prec, y=rec)