[R] ordered lable in ROCR

2012-02-29 Thread genomenet
Hi There, I don't understand how to order the label in ROCR package in order to get the correct result. I am wondering whether you can help me. library(ROCR) data(ROCR.simple) pred <- prediction(ROCR.simple$predictions,ROCR.simple$labels) svm.auc <- performance(pred, 'tpr', 'fpr') plot(svm.auc)

[R] ordered lable in ROCR

2012-02-29 Thread genomenet
Hi There, I don't understand how to order the label in ROCR package in order to get the correct result. I am wondering whether you can help me. library(ROCR) data(ROCR.simple) pred <- prediction(ROCR.simple$predictions,ROCR.simple$labels) svm.auc <- performance(pred, 'tpr', 'fpr') plot(svm.auc)