Hello,
I would like to specify the order of the variables in the legend of a radar graph using proc gradar. The default is alphabetical. I know how this can be done when a group= option is available for some graphing procedures. However, proc gradar uses an overlayvar= option for specifying graphing different groups of variables on the same plot. Does anyone know how to do this? My code is below.
goptions reset=all cback=white border htitle=12pt htext=10pt;
proc gradar data=race;
chart descrip /freq=meanpct overlayvar=race_ethnicity lstars=(1 1 1 1 1)
cstars=(CX000000 CXDCDCDC CXFF0000 CX0000FF CX00FF00)
starfill=(empty solid empty empty empty) cstarcircles=ltgray cframe=white caxis=ltgray;
run;
Thank you -- Jessi Thomson
It may also help to sort by that variable.
It has been a long time since I worked with Proc Gradar.
I think you may accomplish what you want by creating a numeric variable that has codes in the order you would like them displayed and then use a custom format to display the desired text for that variable.
It may also help to sort by that variable.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.