Question: Plotting two ROC curves
0
gravatar for khn
5 weeks ago by
khn100
khn100 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 • 139 views
ADD COMMENTlink modified 5 weeks ago by Jean-Karim Heriche18k • written 5 weeks ago by khn100
2

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

ADD REPLYlink written 5 weeks ago by Santosh Anand4.6k

Thank you so much. So helpful!!

ADD REPLYlink written 5 weeks ago by khn100
1

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

ADD REPLYlink written 5 weeks ago by b.nota6.0k
4
gravatar for Jean-Karim Heriche
5 weeks ago by
EMBL Heidelberg, Germany
Jean-Karim Heriche18k 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 weeks ago by Jean-Karim Heriche18k

I really appreciate your help!

ADD REPLYlink written 5 weeks ago by khn100
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: 762 users visited in the last hour