|
|
@@ -272,9 +272,9 @@ simple.plotROCgg<-function(df,vars,cols,x=0.7,y=0.3,unit="ml",precise="FALSE",ta
|
|
|
sAUC=simple.sAUC(roc)
|
|
|
lab <- base::sprintf("[%s] AUC: %.2f (+- %.2f), OPT THR: %.2f",
|
|
|
var, auc, sAUC, roc_metrics$threshold)
|
|
|
-
|
|
|
- g<-g+ggplot2::geom_line(ggplot2::aes(x=!!roc$FPR,y=!!roc$TPR,color=!!lab),position=ggplot2::position_dodge2(width=0.2))
|
|
|
- aes_p=ggplot2::aes(x=!!roc_metrics$FPR,y=!!roc_metrics$TPR,color=!!lab)
|
|
|
+ off=0.05*stats::runif()
|
|
|
+ g<-g+ggplot2::geom_line(ggplot2::aes(x=!!(roc$FPR+off),y=!!roc$TPR,color=!!lab))
|
|
|
+ aes_p=ggplot2::aes(x=!!(roc_metrics$FPR+off),y=!!roc_metrics$TPR,color=!!lab)
|
|
|
g<-g+ggplot2::geom_point(aes_p,size=4,shape=1,show.legend=FALSE)
|
|
|
colors_used<-base::c(colors_used,col)
|
|
|
cvalues<-base::c(cvalues,lab)
|