BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
mglogan
Obsidian | Level 7

Hello!

 

Is there a way to order the legend (for Actual Arm) in sgpanel sequentially? Thank you!

proc sgpanel data=final;
*styleattrs datasymbols=(circlefilled x trianglefilled) ;
 panelby reason;
 series x=dsstdy y=percent2 /group=actarmn tip=(subjid dsstdy percent) tiplabel=(auto 'study day') 
 																	 markers markerattrs=(symbol=circlefilled size=10) lineattrs = (thickness = 2);
 colaxis grid values=(1 to 240 by 20);
 rowaxis grid values=(0 to 10 by 1);
run ; 

 

 

Capture.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User
What happens if you add GroupOrder=Ascending option to the Series statement?

View solution in original post

4 REPLIES 4
Reeza
Super User
Is the variable actarmN a numeric or character variable and does it have a format applied?
Reeza
Super User
What happens if you add GroupOrder=Ascending option to the Series statement?
mglogan
Obsidian | Level 7

Oh thank you! the grouporder= option worked.

 

The value of actarmn is numeric, and I planned to apply a format to the numeric value.

Reeza
Super User
I was asking that to see if it had a format applied and for some reason was sorting according to the underlying value rather than displayed value. Glad that GroupOrder worked.

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1631 views
  • 3 likes
  • 2 in conversation