R for plotting precision-recall