Date: Fri, 9 Jan 2004 10:02:40 -0500
Reply-To: "DePuy, Venita" <depuy001@DCRI.DUKE.EDU>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "DePuy, Venita" <depuy001@DCRI.DUKE.EDU>
Subject: Re: scatter plots
Content-Type: text/plain
To clarify;
you'd like A * B where C =1; A*B where C = 2; etc. and different
symbols for the D's.
how about:
Proc sort data=file;
by C;
Proc gplot data=file;
plot A * B = D;
by C;
I think that should work!
As far as getting them all on the same page; you can use GREplay to combine
4 graphs into one large graphic.
proc greplay igout=gseg nofs;
tc=sashelp.templt;
template=l2r2s;
treplay 1:plot 2:plot1 3:plot2 4:plot3;run; quit;run;
Side note: I don't particularly understand greplay, this is a bit of code
from one of my professors last year. My understanding is to the extent that
I can change the plot names to reflect what they need to (I've also used it
for MI and Univariate output). The plot names (in SAS for Windows) are in
the top left corner.
HTH!
-Venita
> ----------
> From: Jkd304[SMTP:jkd304@AOL.COM]
> Reply To: Jkd304
> Sent: Friday, January 09, 2004 9:49 AM
> To: SAS-L@LISTSERV.UGA.EDU
> Subject: scatter plots
>
>
>
> Dear all,
>
> I have a simple problem.
>
> I have 4 variables, call them A B C D. I would like to produce separate
> scatter
> plots, but on the same page, of A against B for all the different levels
> of C.
> However, I would like different symbols on each plot to represent the
> different
> levels of D.
>
> Thanks in advance for any help.
>