| Date: | Thu, 31 May 2007 16:20:32 -0400 |
| Reply-To: | Ya Huang <ya.huang@AMYLIN.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Ya Huang <ya.huang@AMYLIN.COM> |
| Subject: | force plot2 to use same symbol as plot1? |
|---|
Hi there,
The symbols for each id in grp 1 match between plot and plot2, but not
for grp 2. Any simple way to force plot2 use the same symbol as plot when
number of id changes?
Thanks
Ya
data xx;
input grp id x y1 y2;
cards;
1 1 1 1 5
1 1 2 2 4
1 1 3 3 3
1 2 1 2 6
1 2 2 3 5
1 2 3 4 4
1 3 1 3 7
1 3 2 4 6
1 3 3 5 5
2 1 1 1 7
2 1 2 2 6
2 1 3 3 5
2 2 1 2 8
2 2 2 3 7
2 2 3 4 6
;
goptions reset=all;
symbol1 i=j v=dot color=black;
symbol2 i=j v=circle color=black;
symbol3 i=j v=square color=black;
symbol4 i=j v=dot color=black;
symbol5 i=j v=circle color=black;
symbol6 i=j v=square color=black;
axis1 order=(0 to 10);
axis2 order=(0 to 10);
legend1 label=('Y1');
legend2 label=('Y2');
proc gplot data=xx;
by grp;
plot y1*x=id / vaxis=axis1 legend=legend1;
plot2 y2*x=id /vaxis=axis2 legend=legend2;
run;
|