[R-sig-ME] X vs Multiple Y Plot based on Individual Subjects

Shankar Lanke shankarlanke at gmail.com
Fri Mar 18 20:01:11 CET 2011


Dear All,

I thank R community for the support.

I am looking for a code to plot X and Multiple Y scatter plot.(Table below).
However I dont want to plot all my IDs, one at a time or two at a time as
shown in figure. My Y1 is red dots and Y2 blue line.

ID  X    Y1  Y2
1  0.5  0.4   1
1  0.2  0.1   2
1  1      2    3
1  4      5    4
2  2.5   3    5
2  3      4    6
2  0.5  0.4   7
2  0.2  0.1   8
2   1      2   9
2   4      5   8
2  2.5   3    7
2  3      4    6
3  0.5  0.4  5
3  0.2  0.1  4
3  1      2
3   4      5
3  2.5   3
3  3      4

-- 
Regards,
Shankar Lanke Ph.D.
University at Buffalo
Office # 716-645-4853
Fax # 716-645-2886
Cell # 678-232-3567


More information about the R-sig-mixed-models mailing list