代码如下:
library(pROC)
modelroc <- roc(true_value,predict_value)
plot(modelroc, print.auc=TRUE, auc.polygon=TRUE, grid=c(0.1, 0.2),
grid.col=c("green", "red"), max.auc.polygon=TRUE,
auc.polygon.col="skyblue", print.thres=TRUE) #画出ROC曲线,标出坐标,并标出AUC的值
结果图片如下:
图片能看到横坐标是1到0, 应该怎么调整成0到1的样式呢?谢谢!
附件列表