BookmarkSubscribeRSS Feed
SKK
Calcite | Level 5 SKK
Calcite | Level 5

I have nested data with counts for each of them and I need to plot them. After some research I found sunburst chart would be a appropriate model to chart them but couldn't find any SAS procedures for it. Is there any procedures like GMAP or GCHART to program Sunburst charts ?

 

Also is there any other appropriate model for plotting nested data ? 

7 REPLIES 7
PaalNavestad
Pyrite | Level 9

Hi there is an easy treemap option in SAS VA. If you do not have that available I think you'll find some treemap options in sgplot. 

 

See in the SAS blog Graphically speaking. There are usually some very good ideas there.

SKK
Calcite | Level 5 SKK
Calcite | Level 5

Yes Exactly... But I dont have access to SAS VA.. So is there any other way to do this ?

PaalNavestad
Pyrite | Level 9
You can do it with sgplot or the GTL language. I do not have an example handy.
You can alos look at proc tree from SAS/STAT that show the hierarchy very well. You have to juggle a bit.
I think I've seen an example in the graphically speaking blog. Just google graphically speaking sas and it gets you there
SKK
Calcite | Level 5 SKK
Calcite | Level 5

Thanks for the information I will look into that blog... Is it possible to create Sub-grouped donut chart for multiple level nested data ?

PaalNavestad
Pyrite | Level 9

I do not know. I seem to remember I did create a set of pies or donuts using sgchart about 15 years ago. But I can't exactly remenber how  I very seldom use pie charts anymore and for the sunflower chart I had problems seeing the use.

 

Have you just tried using midpoint/group and subgroup in gchart. I would prefer a treemap. There is a mosaic plot in GTL that you can try.

Rick_SAS
SAS Super FREQ

Statisticians use mosaic plots to display hierarchical data, although in practice it works best for three or fewer levels of nesting. PROC FREQ can display a mosaic plot automatically, The plot is often used to accompany an analysis/discussion of whether there is association between variables.

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
  • 7 replies
  • 2245 views
  • 0 likes
  • 4 in conversation