Re: [R] Scatterplot_row match

2010-07-15 Thread Yanwei Tan
Dear Jonathan, Thanks a lot for your help! That works pretty well! Best wishes, Wei On 7/15/10 5:52 PM, Jonathan Flowers wrote: > Hi, > > What if you create two data frames, then merge them by gene id. > > If your data is in a data frame called "dframe"... > > df1 <- subset(dframe,select=c("id2c

Re: [R] Scatterplot_row match

2010-07-15 Thread Jonathan Flowers
Hi, What if you create two data frames, then merge them by gene id. If your data is in a data frame called "dframe"... df1 <- subset(dframe,select=c("id2c","2c")) df2 <- subset(dframe,select=c("id1c","1c")) merged <- merge(df1,df2,by.x="id2c",by.y="id1c",all=TRUE) plot(merged$1c,merged$2c) Ch