본문 바로가기

R_statistics/Rs_graphics

[R프로그래밍] 데이터시각화 with ggplot2:: ggplot 으로 ROC curve 그리기

ggplot(df,aes(FPR,TPR,color=GeneSet))+
       geom_line(size = 2, alpha = 0.7)+ 
       labs(title= "ROC curve", x = "False Positive Rate (1-Specificity)", y = "True Positive Rate (Sensitivity)")

이건 미처 생각하지 못한 방법...
이걸로 python 에서 얻어진 값을 활용해서 R 에서 ROC curve 를 그릴 수 있다.