Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: "overlaying" Stacked bar charts


From   Devra Golbe <dgolbe@gmail.com>
To   statalist <statalist@hsphsun2.harvard.edu>
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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index