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: RE: question on graphing a bar
From
Nick Cox <[email protected]>
To
"'[email protected]'" <[email protected]>
Subject
st: RE: question on graphing a bar
Date
Fri, 18 May 2012 15:05:44 +0100
Consider
clear
set obs 3
gen cat = _n
gen twothree = _n > 1
gen y = runiform()
graph bar (asis) y , over(cat) over(twothree) asyvars stack
Nick
[email protected]
Jian Zhang
I was trying to graph a vertical bar chart where there are three bars.
but i wanted the second and third bars stacked. Does anyone know how
to do this? thanks!
*
* 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/