LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (August 2009, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Fri, 7 Aug 2009 20:53:25 -0500
Reply-To:   Kevin Myers <KevinMyers@AUSTIN.RR.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Kevin Myers <KevinMyers@AUSTIN.RR.COM>
Subject:   Re: Legend for PROC GPLOT
Comments:   To: OR Stats <stats112@gmail.com>
Content-Type:   text/plain; charset="iso-8859-1"

You can specify both starting and ending dates for the plot, but not easily either one by itself.

Example:

data plot; format date date9.; do date="01mar1982"d to "03feb1983"d; y=sin(constant("PI")*date/182.625); output; end; run;

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 Cc: SAS-L@listserv.uga.edu 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 <stats112@gmail.com> wrote:

Can we also pre-fix the starting value of our Y-axis?

On Fri, Aug 7, 2009 at 1:17 AM, OR Stats <stats112@gmail.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> To: <SAS-L@LISTSERV.UGA.EDU> Sent: Thursday, August 06, 2009 23:01 Subject: Legend for PROC GPLOT

Hello:

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;

run;

quit;

Thank you!


Back to: Top of message | Previous page | Main SAS-L page