Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

st: RE: question on graphing a bar

From   Nick Cox <>
To   "''" <>
Subject   st: RE: question on graphing a bar
Date   Fri, 18 May 2012 15:05:44 +0100


set obs 3
gen cat = _n
gen twothree = _n > 1
gen y = runiform()
graph bar (asis) y , over(cat) over(twothree) asyvars stack


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:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index