Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Pie chart problem
From
Philip Burgess <[email protected]>
To
[email protected]
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/