Hi,
I'm trying to make a radar plot with the below code;
proc gradar data=work.Loadings1;
chart food_groups /sumvar=loading
overlay=factor
NOFRAME height=2.0 STARSTART='12:00'T
cstars=(red, yellow, green)
starcircles=(-1,-0.5, 0, 0.5, 1)
wstar=2 2 2
wstarcircles=2 2 2
lstarcircles=1 1 1
lstars=1 1 1
cstarcircles=ltgray;
run;
quit;
Everything works fine, except I have about 57 variables and the labels of these on spokes outside overlap. I'm not sure how else to explain but I could attach an image if needed. Thanks
57 spokes on a radar chart is a bit much!
I would recommend that maybe a radar chart isn't the best choice for representing so much data.
Perhaps a horizontal bar chart, with 57 bars instead?
Hi:
I tend to agree - 57 is a lot to display on a gradar chart. Even if you do an AXIS statement and rotate the labels, with 57, even rotated, I am afraid that the rotation would not resolve all the collision issues.
SAS/GRAPH does not have the label collision routines that are found in ODS GRAPHICS, so the only extra control you have would be to use ROTATE or to use ANNOTATE. Either way, with 57 values, it's not a trivial programming process.
This is an example of using the SG procedures and the POLYGON statement to do a RADAR chart in a panel plot: https://blogs.sas.com/content/graphicallyspeaking/2013/11/27/is-there-a-car-on-your-radar/ . There might be some ideas here.
I'm not on a computer where I can run any code right now, but I think the horizontal bar chart idea is a good one. If the data has groups, the bars can be grouped or if you use SGPANEL, can be paneled by groups.
Hope this helps,
Cynthia
Thanks for your suggestions, Robert and Cynthia.
Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.
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.