|
as far as I understand is it a question of "I want to see the values in
other kind than the numbers behind...". That can be done by a user-format.
If you define a format and assign it to the x-values, the formatted values
appear instead of the numbers.
So the numbers of the weeks can be behind and you can have other values in
the graph. Not sure if that is it...
Gerhard
On Mon, 10 May 2010 13:09:36 -0400, Deep <adsingh78@GMAIL.COM> wrote:
>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
|