Data visualization with SAS programming

proc glam box plot ODS

Accepted Solution Solved
Reply
Contributor
Posts: 20
Accepted Solution

proc glam box plot ODS

 

I would like to change order of the box plots to be:

control OA and LSS.

I am not sure why it is flipped the opposite way.

 

Also how do I override the automatic title.

looks like the code I put in for the title does not work. Appreciate all the help!

 

See attached graph.

here is the code I used:

proc format; 
value group 0="control" 1="OA" 2= "LSS"  ;
run;
proc glm data=my data; class group;
title "Gait Speed Symmetry Index Distribution";
model speed_SymIdx_iqr = group/effectsize alpha=0.05;
Format group group.;
LABEL speed_SymIdx_iqr='Gait Speed Symmetry Index';
 run; quit;

Accepted Solutions
Solution
‎04-09-2018 02:13 AM
Esteemed Advisor
Posts: 5,401

Re: proc glam box plot ODS

Try adding option order=internal to the proc glm statement.

PG

View solution in original post


All Replies
Solution
‎04-09-2018 02:13 AM
Esteemed Advisor
Posts: 5,401

Re: proc glam box plot ODS

Try adding option order=internal to the proc glm statement.

PG
Contributor
Posts: 20

Re: proc glam box plot ODS

thank you. that worked to restore the order. do know how I could override the automatic title?

Esteemed Advisor
Posts: 5,401

Re: proc glam box plot ODS

It's usually easier to make your own graph (getting the data from an OUTPUT statement) than to fiddle with the internal proc GLM GTL template to modify the graph.

PG
Contributor
Posts: 20

Re: proc glam box plot ODS

thanks.

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 154 views
  • 2 likes
  • 2 in conversation