Question: Plotting two ROC curves
0
gravatar for khn
5 months ago by
khn110
khn110 wrote:

Hello,

Do you know how to draw two ROC curves together? I showed that two SNPs are relevant to develop a disease, and I want to show how ROC curve improves if I add one SNP to the other SNP.

Just using par(new=T) creates two x-axis and y-axis, so I want to draw two curves and one x&y-axis.

Thank you!

R • 237 views
ADD COMMENTlink modified 5 months ago by Jean-Karim Heriche19k • written 5 months ago by khn110
2

see https://rocr.bioinf.mpi-sb.mpg.de/

ADD REPLYlink written 5 months ago by Santosh Anand4.9k

Thank you so much. So helpful!!

ADD REPLYlink written 5 months ago by khn110
1

I changed your post type from 'Tool' to 'Question'. The 'Tool' type is meant for promotion of novel tools.

ADD REPLYlink written 5 months ago by Benn6.9k
4
gravatar for Jean-Karim Heriche
5 months ago by
EMBL Heidelberg, Germany
Jean-Karim Heriche19k wrote:

Try with the R pROC package:

library(pROC)

roc1 <- plot.roc(outcome1, prediction1, main="ROC comparison", percent=TRUE, col= "red")
roc2 <- lines.roc(outcome2, prediction2, percent=TRUE, col="blue")
ADD COMMENTlink written 5 months ago by Jean-Karim Heriche19k

I really appreciate your help!

ADD REPLYlink written 5 months ago by khn110
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 2078 users visited in the last hour