The code below should display a roc curve for 28-day mortality using a clinical scores (based on organ dysfunction). The code worked perfectly some months ago, now it yields error:
"Error in roc(y1, x, plot = TRUE, legacy.axes = TRUE, lwd = 4, add = TRUE, :
unused arguments (plot = TRUE, legacy.axes = TRUE, lwd = 4, add = TRUE, col = "darkred").
y1 <- as.integer(E_SOFA_StudyPop$`Dead within 28 d (1/0)`) #
x <- as.integer(E_SOFA_StudyPop$`3h total SOFA`)
#28 -d mortality
par(pty= "s")
roc.a = roc(y1, x, plot=TRUE, legacy.axes=TRUE, lwd=4, add=TRUE, col="darkred")
I have tried:
- installing the
pROC
package again - Restarted R session
- Tried one argument at a time, but it gives a similar error for all
arguments that I tried
As I said, this worked without problems some two months ago, thankful for help with this issue.