Date: Thu, 11 Nov 2004 15:38:55 -0500
Reply-To: "Huang, Ya" <yhuang@AMYLIN.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Huang, Ya" <yhuang@AMYLIN.COM>
Subject: Re: how to put a graph on one page and its legend on the next
page?
This is how I do it:
Use two gplots, the first one with nolegend option to suppress
the legend. The second one with legend, but use a different
x-y axis, which are squeezed to 0.01pct x 0.01pct size, so the plot
part can barely been seen. But the legend will still be there:
data xx;
do pt=1 to 200;
do day=1,3,7,12;
result=ranuni(3);
output;
end;
end;
run;
proc gplot;
plot result*day=pt / nolegend;
run;
axis1 length=0.01pct v=none major=none minor=none label=none;
axis2 length=0.01pct v=none major=none minor=none label=none;
legend1 position=(top center outside);
proc gplot;
plot result*day=pt / haxis=axis1 vaxis=axis2 legend=legend1;
run;
HTH
Kind regards,
Ya Huang
On Thu, 11 Nov 2004 12:12:14 -0800, Helen <sunchunkui@HOTMAIL.COM> wrote:
>Hi SAS-L,
>
>I have a graph which is a plot of 200 patients. Each patients has a
>line on it.
>
>proc gplot data=all;
> plot result*days=pt/noframe vaxis=axis1 haxis=axis2 ;
>
>Since the legend takes 2/3 of the page, the graph looks messy. Can I
>seperate them into 2 pages? Any comments are welcome.
>
>Helen
|