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.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

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
  • 1220 views
  • 3 likes
  • 2 in conversation