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: overlay of stacked bar and line?

From   Nirina F <>
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

graph bar (asis)  y1 y2 y3 if year>=2000, over(year) stack || line
totalofy1y2 year

Is there a new command that does this please?

*   For searches and help try:

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