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
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.