Re: [R] how to plot a data by different group

2009-10-12 Thread Ista Zahn
Hi Catherine, Assuming your variables are in a dataframe called myData, some variation of the following may be what you want: library(ggplot2) myData.m <- melt(myData, measure.vars=c("Y1", "Y2")) qplot(X, value, colour=variable, shape=groupf3, facets=groupf1~groupf2, geom="point", data=myData.m)

[R] how to plot a data by different group

2009-10-12 Thread catherineLF
Dear everyone, sorry to bother you. I have a big data, suppose it has 200 groups and each group has 100 data. So the data have 2 observations in total. The variables are groupf1 groupf2 groupf3 X Y1 Y2 1 11 1 0.5 0.5 groupf1, groupf2 and groupf3 are