瀏覽代碼

Adding ggplot2:: to position_dogde

Andrej 5 天之前
父節點
當前提交
ba2e1687cc
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      R/roc.R

+ 1 - 1
R/roc.R

@@ -273,7 +273,7 @@ simple.plotROCgg<-function(df,vars,cols,x=0.7,y=0.3,unit="ml",precise="FALSE",ta
          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=position_dogde(width=0.2))
+         g<-g+ggplot2::geom_line(ggplot2::aes(x=!!roc$FPR,y=!!roc$TPR,color=!!lab),position=ggplot2::position_dogde(width=0.2))
          aes_p=ggplot2::aes(x=!!roc_metrics$FPR,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)