2

In the roc function of pROC package I would like to print my specific cutoff values (print.thres parameter) with two decimal digits, because one cutoff is 0.05 and in the plot appears as 0.0 Any suggestion?

Calimo
  • 7,510
  • 4
  • 39
  • 61
user2310909
  • 116
  • 8

1 Answers1

0

You can use the print.thres.pattern argument to the plot function:

myROCcurve <- roc(...)
plot(myROCcurve, print.thres = 0.05, print.thres.pattern="%.2f")
Calimo
  • 7,510
  • 4
  • 39
  • 61