Date: Wed, 28 Apr 2004 15:47:26 +0100
Reply-To: Robert Burbidge <RBurbidge@PHD.CO.UK>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Robert Burbidge <RBurbidge@PHD.CO.UK>
Subject: Re: Axis for SAS Graph
Content-Type: text/plain; charset="iso-8859-1"
> It works fine but I would like to constrain the y-axis values to start
> at 0 (zero) even if that value does not exist in any of the datasets.
vzero in this case
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU]On Behalf Of
Richard A. DeVenezia
Sent: 28 April 2004 15:39
To: SAS-L@LISTSERV.UGA.EDU
Subject: Re: Axis for SAS Graph
David Yeates wrote:
> Hi All,
>
> The final step in one of my macros is to merge several datasets and
> use proc GPLOT to create a multi-variable chart.
>
> It works fine but I would like to constrain the y-axis values to start
> at 0 (zero) even if that value does not exist in any of the datasets.
>
> Before I start changing my macro code so that I can use the order
> statement as in order(0 to &maxval by &interval), for example does
> anyone have a crafty way to make this happen.
>
> Regards
> David
Consider the HZERO PLOT option.
data xy;
do x = 100 to 200;
y = sin (x/200*constant('pi'));
output;
end;
run;
symbol1 i=join v=point;
* compare and contrast;
proc gplot data=xy;
plot y*x;
plot y*x / hzero;
run;
--
Richard A. DeVenezia
http://www.devenezia.com
***********************************************************************************
Privileged/Confidential Information may be contained in this message.
If you are not the addressee indicated in the message (or responsible
for the delivery of the message to such person), you may not copy
or deliver this message to anyone.
In such case, you should destroy this message and kindly notify the
sender by reply Email. Please advise immediately if you or your employer
does not consent to Internet Email for messages of this kind.
Opinions, conclusions and other information in this message that do not
relate to the official business of PHD Limited or its
Group/Associated Companies shall be understood as neither given nor
endorsed by them.
PHD Limited
Registered in England.
Registered Number: 2423952
Registered Office: The Telephone Exchange, 5 North Crescent, Chenies Street, London, WC1E 7PH
Telephone: 020 7446 0555
Fax: 020 7446 7100
E-Mail: postmaster@phd.co.uk
***********************************************************************************