Notice: On March 31, it was **announced** that Statalist is moving from an email list to a **forum**. The old list will shut down on April 23, and its replacement, **statalist.org** is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From |
Philip Burgess <philip.burgess.uq@gmail.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
st: Pie chart problem |

Date |
Thu, 18 Feb 2010 17:36:44 +1000 |

I have a problem running a series of pie charts. Basically, I have a series of charts that vary by only 1 parameter. I build the chart and then export it .... All of the commands are in one do file. The first chart works fine: graph pie obs3 obs2 if agegrp == 1 & mhsrvset == 1 & collocc == 1, /// pie(_all, explode) plabel(_all sum, color(white) size(small) format(%6.0f)) /// by(, title(Pie 1.1.1: Child & Adolescent - Inpatient - Admission) note(Comparative Data Volume)) /// scheme(s1color) name(NSW111, replace) by(CR in0510) graph export "C:\Data\AMHOCN\Data\NOCC\06 Clinical Ratings\CS\NSW\NSW_PIE_111.emf", replace But the next in the series fails: graph pie obs3 obs2 if agegrp == 1 & mhsrvset == 1 & collocc == 2, /// pie(_all, explode) plabel(_all sum, color(white) size(small) format(%6.0f)) /// by(, title(Pie 1.1.2: Child & Adolescent - Inpatient - Review) note(Comparative Data Volume)) /// scheme(s1color) name(NSW112, replace) by(CR in0510) graph export "C:\Data\AMHOCN\Data\NOCC\06 Clinical Ratings\CS\NSW\NSW_PIE_112.emf", replace The only differences are: 1. the parameter 'collocc' is set to 2 in the second pass; 2. the title changes; 3. the name of the export file changes I get the following error message: plabel[1-2+1].style.ref: class type not found r(4018); If I rem out the first chart processing, I still get the same error message. I can't work out what I'm doing wrong. Any thoughts much appreciated. Thanks; Philip * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

**Follow-Ups**:**Re: st: Pie chart problem***From:*Maarten buis <maartenbuis@yahoo.co.uk>

- Prev by Date:
**st: aic bic adjusted R-squared with svy command** - Next by Date:
**Re: st: Pie chart problem** - Previous by thread:
**st: aic bic adjusted R-squared with svy command** - Next by thread:
**Re: st: Pie chart problem** - Index(es):