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 (May 2010, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 10 May 2010 13:09:36 -0400
Reply-To:     Deep <adsingh78@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Deep <adsingh78@GMAIL.COM>
Subject:      Proc Gplot - Scaling of x-axis

Hi,

I have a question regarding scaling of x-axis in proc gplot. I am not sure how this can be done.

X-axis values (weeks)- 0,2,4,8,16,24,32,40,48,72,96,108.

Scaling of weeks on x-axis should be proportional to the difference between 2 consecutive weeks. e.g. distance between week 2 and week 4 should be less compared to the distance between week 4 and 8 on x-axis.

This is what I have so far. With this code, I get all equidistant points on x-axis.

axis1 label = (h=2.2 pct "Week") minor = none value = (height=1.6 pct) offset = (0.2 in, 0.2 in) order = 0 2 4 8 16 24 32 40 48 72 96 108;

axis2 label = (h=2.2 pct a=90 "Change from Baseline") w = 2 minor = (n=1) value = (height=1.6 pct) order = -50 to 575 by 50;

legend1 position=(top center inside) mode=protect value = (height=1.6 pct j=l) across= 1 label = (position=top justify=left h=1.6 pct "Percentile:") origin= (10 pct,) mode = protect frame ;

proc gplot data=gfinal; plot var1 * var2 = var3 / haxis=axis1 vaxis=axis2 legend=legend1; run ;

TIA


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