Dear all,
I'm trying to overlay a stacked bar chart with a line chart.
I plot 7 variables (some of which are negative most of the time) in the barchart with the "graph bar, stack" routine:

I now want to add a variable that is the difference between all positive and negative variables as a line to the chart.
It seems that "graph bar" does not allow this and that I'd need to switch to a "twoway" routine with "bar", "rbar" and "line".
However, trying this out and reading the discussion HERE, I'm not sure how this could be done if some of my variables are negative - or if this can be done in my situation at all.
I'm trying to overlay a stacked bar chart with a line chart.
I plot 7 variables (some of which are negative most of the time) in the barchart with the "graph bar, stack" routine:
Code:
graph bar (asis) var1 var2 var3 var4 var5 var6 var7, stack
I now want to add a variable that is the difference between all positive and negative variables as a line to the chart.
It seems that "graph bar" does not allow this and that I'd need to switch to a "twoway" routine with "bar", "rbar" and "line".
However, trying this out and reading the discussion HERE, I'm not sure how this could be done if some of my variables are negative - or if this can be done in my situation at all.
Comment