Bookmark and Share

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: "overlaying" Stacked bar charts


From   Devra Golbe <[email protected]>
To   statalist <[email protected]>
Subject   st: "overlaying" Stacked bar charts
Date   Wed, 17 Feb 2010 13:44:16 -0500

Is there a way to "overlay" stacked bar charts? That is, using the citytemp data I can go

webuse citytemp
graph bar tempjan tempjuly, over(region) stack
graph bar  heatdd cooldd, over(region) stack

and get two separate graphs each over region. What I would like is one graph, with the temp bar for each region paired with the corresponding degree-day bar. I guessed the code would be something like the following pseudo-code, which results in an error:

twoway (bar tempjan tempjuly ) (bar  heatdd cooldd ), over(region) stack
option over() not allowed
r(198);

I've checked Mitchell's "Visual Guide to Stata Graphics", as well as the web and the Statalist, and found no clues.

Thanks,
Devra


*
*   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/


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