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?
Asked
Active
Viewed 326 times
2

Calimo
- 7,510
- 4
- 39
- 61

user2310909
- 116
- 8
-
`print.thres.pattern="%.2f"` maybe? – Łukasz Deryło Jul 23 '19 at 10:28
-
@ŁukaszDeryło why not write it as an answer? – Calimo Jul 23 '19 at 12:19
-
@Calimo Because that's a guess. I didn't check if that works, just posted an idea. – Łukasz Deryło Jul 23 '19 at 12:25
-
@ŁukaszDeryło it works, thank you. Sorry, kjetil b halvorsen, I didn't know it was off-topic here, I will be more careful next time – user2310909 Jul 24 '19 at 11:16
1 Answers
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