Hi, i have a fairly large amount of genomic data. I have created a dataframe which has "Reference" as one column and "Variation" as another. I want to plot a ROC curve based on these 2 columns. I have serached the R manual but I could not understand. Can anybody help me with the R code for plotting ROC curve. Thnx ashu6886 -- View this message in context: http://r.789695.n4.nabble.com/ROC-curve-in-R-tp2275431p2275431.html Sent from the R help mailing list archive at Nabble.com.
On Jul 1, 2010, at 12:50 PM, ashu6886 wrote:> > Hi, > > i have a fairly large amount of genomic data. I have created a > dataframe > which has "Reference" as one column and "Variation" as another. I > want to > plot a ROC curve based on these 2 columns. I have serached the R > manual but > I could not understand. Can anybody help me with the R code for > plotting ROC > curve. >Not sure what sort of "R manual" you consulted, but surely any basic introduction must have covered how to search. In the interest of moving you a bit faster perhaps: ?RSiteSearch -- David Winsemius, MD West Hartford, CT
Did you try googling on "R ROC function" (or something similar) or using the RSiteSearch() function? ?RSiteSearch RSiteSearch("ROC",restr="func") Learn to use R's various search capabilities before posting, please! Bert Gunter Genentech Nonclinical Biostatistics -----Original Message----- From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of ashu6886 Sent: Thursday, July 01, 2010 9:51 AM To: r-help at r-project.org Subject: [R] ROC curve in R Hi, i have a fairly large amount of genomic data. I have created a dataframe which has "Reference" as one column and "Variation" as another. I want to plot a ROC curve based on these 2 columns. I have serached the R manual but I could not understand. Can anybody help me with the R code for plotting ROC curve. Thnx ashu6886 -- View this message in context: http://r.789695.n4.nabble.com/ROC-curve-in-R-tp2275431p2275431.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Try the ROCR package. http://rocr.bioinf.mpi-sb.mpg.de/ROCR.pdf Saeed On Thu, Jul 1, 2010 at 9:50 AM, ashu6886 <ashu.infy.mits at gmail.com> wrote:> > Hi, > > i have a fairly large amount of genomic data. I have created a dataframe > which has "Reference" as one column and "Variation" as another. I want to > plot a ROC curve based on these 2 columns. I have serached the R manual but > I could not understand. Can anybody help me with the R code for plotting ROC > curve. > > Thnx > ashu6886 > -- > View this message in context: http://r.789695.n4.nabble.com/ROC-curve-in-R-tp2275431p2275431.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >
Read the ROCR package, it is very good. On Thu, Jul 1, 2010 at 9:50 AM, ashu6886 <ashu.infy.mits@gmail.com> wrote:> > Hi, > > i have a fairly large amount of genomic data. I have created a dataframe > which has "Reference" as one column and "Variation" as another. I want to > plot a ROC curve based on these 2 columns. I have serached the R manual but > I could not understand. Can anybody help me with the R code for plotting > ROC > curve. > > Thnx > ashu6886 > -- > View this message in context: > http://r.789695.n4.nabble.com/ROC-curve-in-R-tp2275431p2275431.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Sincerely, Changbin -- Changbin Du DOE Joint Genome Institute Bldg 400 Rm 457 2800 Mitchell Dr Walnut Creet, CA 94598 Phone: 925-927-2856 [[alternative HTML version deleted]]
On 07/01/2010 01:33 PM, Changbin Du wrote:> Read the ROCR package, it is very good.Just be sure you really need an ROC curve. More often than not it gets in the way of understanding. Frank> > > > > > On Thu, Jul 1, 2010 at 9:50 AM, ashu6886<ashu.infy.mits at gmail.com> wrote: > >> >> Hi, >> >> i have a fairly large amount of genomic data. I have created a dataframe >> which has "Reference" as one column and "Variation" as another. I want to >> plot a ROC curve based on these 2 columns. I have serached the R manual but >> I could not understand. Can anybody help me with the R code for plotting >> ROC >> curve. >> >> Thnx >> ashu6886 >> -- >> View this message in context: >> http://r.789695.n4.nabble.com/ROC-curve-in-R-tp2275431p2275431.html >> Sent from the R help mailing list archive at Nabble.com. >> >> ______________________________________________ >> R-help at r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide >> http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. >> > > >-- Frank E Harrell Jr Professor and Chairman School of Medicine Department of Biostatistics Vanderbilt University