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: overlay of stacked bar and line?
From
Nirina F <[email protected]>
To
[email protected]
Subject
st: overlay of stacked bar and line?
Date
Thu, 27 Feb 2014 17:24:07 -0500
I am trying to graph a yearly data and the first one below worked but
not quite what I wanted as I wanted the bar to be stacked.
twoway bar y1 y2 y3 y4 year if year>=2000 || line totalofy1y2 year
if year>=2000
Then I tried this but I got an error I believe it does not specify the
overlay....
graph bar (asis) y1 y2 y3 if year>=2000, over(year) stack || line
totalofy1y2 year
Is there a new command that does this please?
Nina
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/