turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- SAS Programming
- /
- SAS/GRAPH and ODS Graphics
- /
- size of slices in a Pie chart

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

05-30-2013 05:26 PM

Hello all:

I am wondering if you can ask SAS to size the slices in a pie chart according to the percentage but also display the mean sumvar statistics. For example, I can do

proc gchart data=survey;

pie role / sumvar=score

percent=inside

value=arrow

descending

slice=arrow

coutline=black

noheading;

run;

quit;

In this case, the slices are proportional to the % of role and sum of scores are displayed. What I really want is to display is the mean of scores. However when I add

type=mean

The size of slices become proportional to mean(score) instead of percentage now. How can I fix this?

Thanks,

Peter

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to Peter_Y

06-01-2013 04:04 AM

If you specify TYPE=MEAN and use the SUBGROUP= option, the height of the block represents the mean for the entire midpoint. The subgroup segments are proportional to the subgroup's contribution to the sum for the block.

From SAS Help.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to Peter_Y

06-05-2013 11:56 AM

Do you have any example data you can post up?