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

[R] Scatterplot_row match

2010-07-15 Thread Yanwei Tan
Dear all, I would like to make a scatter plot using "plot" function. I have two sample 1c and 2c, the 1st and 3rd are the ID of each gene, the 2nd and 3rd are the values. But as you can see some genes are not in the same row, i.e: ENSMUSG0001020 is in the 4th row in sample 2c and 7th row