You can specify both starting and ending dates for the plot, but not easily either one by itself.
format date date9.;
do date="01mar1982"d to "03feb1983"d;
axis2 order="01jan1980"d to "01jan1985"d by month; /* Do it something like this. */
proc gplot data=plot; plot y*date / haxis=axis2; run;
----- Original Message -----
From: OR Stats
To: Kevin Myers
Sent: Friday, August 07, 2009 20:24
Subject: Re: Legend for PROC GPLOT
If our X-axis is dates, how do we set the xmin and xmax? My current code allows SAS to choose, and it takes one year out that I have no data for. Thank you!
On Fri, Aug 7, 2009 at 1:19 AM, OR Stats <firstname.lastname@example.org> wrote:
Can we also pre-fix the starting value of our Y-axis?
On Fri, Aug 7, 2009 at 1:17 AM, OR Stats <email@example.com> wrote:
In the case of overlay, how do we relabel the y-axis so that it does not automatically name the y-axis the first y-variable that we overlay (e.g., Y1)?
On Fri, Aug 7, 2009 at 12:26 AM, Kevin Myers <KevinMyers@austin.rr.com> wrote:
plot (Y1 Y2 Y3 Y4)* DATE / overlay legend vaxis=axis1;
----- Original Message ----- From: "OR Stats" <stats112@GMAIL.COM>
Sent: Thursday, August 06, 2009 23:01
Subject: Legend for PROC GPLOT
When I overlay four series on the same graph, SAS automatically chooses the
color for each series. But how do we add the legend on the graph so that we
know which color is for which series? My code was
proc gplot data=mydata;
plot (Y1 Y2 Y3 Y4)* dATE / overlay vaxis=axis1;