Hi all:
I have this question:
-How to display x axis max scale by subject.?
thank you,
purpleclothlady
/*axis1 order=(1 to 150 by 7) - max value of x axis will change by subject. eg
001 max is 150, 002 max is 60 , 003 max is 90*/
axis1 order=(1 to 150 by 7) label= (h=1.2 "Time(Day)" justify=center color=black) ;
axis2 offset=(1,1)
order=(0 to 100 by 10) label=( angle=90 h=1 color=blue ""result");
legend1 label=none value=(color=black height=1.2 "result")
position=(bottom center outside);
proc gplot data=rpt;
plot _result*day / legend=legend1
haxis=axis1
vaxis=axis2 ;
by subjid;
run;
quit;
Hi all:
I have this question:
-How to display x axis max scale by subject.?
thank you,
purpleclothlady
/*axis1 order=(1 to 150 by 7) - max value of x axis will change by subject. eg
001 max is 150, 002 max is 60 , 003 max is 90*/
axis1 order=(1 to 150 by 7) label= (h=1.2 "Time(Day)" justify=center color=black) ;
axis2 offset=(1,1)
order=(0 to 100 by 10) label=( angle=90 h=1 color=blue ""result");
legend1 label=none value=(color=black height=1.2 "result")
position=(bottom center outside);
proc gplot data=rpt;
plot _result*day / legend=legend1
haxis=axis1
vaxis=axis2 ;
by subjid;
run;
quit;
Please post questions only once, so all answers can be followed in one thread.
Add the UNIFORM option the PROC GPLOT procedure statement. It should give you uniform axes by subject.
The question is How to show Different x axis scale by subject.
eg. subject 101 max x axis =100
subject 102 max x axis=15
subject 103 max x axis=40
thanks for helping,
purple
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.