LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (November 2001, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 5 Nov 2001 08:38:33 -0500
Reply-To:   Boyd Newlin <bnewlin@INSMED.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Boyd Newlin <bnewlin@INSMED.COM>
Subject:   Re: Different x-axis with gplot
Comments:   To: "Huang, Ya" <ya.huang@pfizer.com>
Content-Type:   multipart/alternative;

You know it's the little things that one seems to forget. It never occured to me to get rid of the axis2 - axis4. ........ Thanks Ya. That gave me what I needed.

-----Original Message----- From: Huang, Ya [mailto:ya.huang@pfizer.com] Sent: Friday, November 02, 2001 6:04 PM To: 'Boyd Newlin' Subject: RE: Different x-axis with gplot

>Yes you will >only see the desired data of the by variable BUT the scale will be for the >full 1 - 90, not 1-30, 31-60, 61-90.

Why not get rid of axis2-axis4?

If you don't use axis statement, sas/graph will automatically assign the proper scale for you:

data xx; do i=1 to 100; x=ranuni(0)*90; y=ranuni(0); output; end;

data xx; set xx; bv=int(x/30)+1; label x='Time (days)';

proc sort; by bv;

proc gplot; plot y*x; by bv; run;

I saw axis changed from 0-30 to 30-60 to 60-90 with the change of bv value.

Is this whay you need?

Ya Huang


[text/html]


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