Simple machine learning in R – ROC

A quick follow up on the last post. I forgot to write about plotting ROC curves in R based on the different models. In the last post I created 5 progressively more complicated decision trees which didn’t really add any benefit when looking at the accuracy of the model. But accuracy is just one metric, what do the ROC curves look like and what are the areas under the curves?

For this we need to load the package ROCR and then the process is pretty simple. Here is the process for plotting the ROC curve for one of the models: