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: Bug with pie charts: example
From
"Allan Reese (Cefas)" <[email protected]>
To
<[email protected]>, <[email protected]>
Subject
st: Bug with pie charts: example
Date
Thu, 2 Feb 2012 14:10:12 -0000
Rather than send out a data file, here is a generated dataset. The
biggest sector is x5, drawn blue. When I make the window very small
vertically, the plots turn orange. I was not able to get this effect
until x6 was added.
set obs 1500
gen x1=75+uniform()*10
gen x2=5+uniform()*1
gen x3=100-x1-x2
g x4= 120+uniform()*20
g x5= 300+uniform()*30
g x6=1
g year = round((_n+199)/200)
graph pie x5 x4 x1 x2 x3 x6, by(year)
Allan
*
* 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/