Wednesday, March 15, 2006

st: RE: pie charts

I have three ideas here.

1. The variable -partenaires- evidently has 229 categories, and Stata will be struggling to cope.

Quite possibly all you will see is a legend and the charts themselves will be out of sight.

2. I can't see how your syntax corresponds to identifying the ten main partners.

3. Although you want a series of pie charts it is difficult for me to see how they will convey the structure of your data at all well. A time series graph appears more natural here. Stata does supply pie charts -- largely so nobody can say "But you can't get a pie chart in Stata!" -- but that doesn't make them an effective method for showing comparative structure over time.

Nick n.j.cox@durham.ac.uk

Christopher.Grigoriou@unil.ch > To represent on a same graph both the total imports evolution > of a country and the evolution in the distribution between > its ten main partners over ten years, I want to represent a > pie charts per year over ten years. > > If I do it year by year (with as many files as there are > years), I run this command: > graph pie imports, over(partenaires) plabel(_all name, > size(*1.5) color(white)) legend(off) etc... > > To have all the years at once to have the same scale(hence > ten pies for 10 years) , I run the following : > > graph pie imports, over(partenaires) plabel(_all name, > size(*1.5) color(white)) legend(off) by(year) > > But then I have the following message error that appear : > > (note: areastyle p16pie not found in scheme, default attributes used) > (note: areastyle p17pie not found in scheme, default attributes used) > (note: areastyle p18pie not found in scheme, default attributes used) > and so on to > (note: areastyle p229pie not found in scheme, default attributes used) > > Would anybody have any idea?

* * For searches and help try: * http://www.stata.com/support/faqs/res/findit.html * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/


Tag:


Links to this post:

Create a Link



<< Home

This page is powered by Blogger. Isn't yours?