I have run a small experiment with 3 treatments (i.e. 4 groups total including control), and am trying to overlay demographic charts to show the groups are largely comparable.
The following command to generate overlaid histograms for the 4 groups for property income (catgeorical) generates the following chart.

What I don't get is what are the slanted lines "joining" certain histogram bars to other, and how to get rid of them.
I should mention that for certain categorical codings (12, 13, 15), there are no observations.
P.S. This does not seem to be a problem unique to `twoway`. I get the same output if I run `hist`
The following command to generate overlaid histograms for the 4 groups for property income (catgeorical) generates the following chart.
Code:
twoway (hist income2 if control == 1, fcolor(blue%0) lcolor(blue) frequency xlabel(#6, valuelabel labsize(vsmall)) width(1) start(1) discrete xtitle("")) /// (hist income2 if treat1 == 1, fcolor(red%0) lcolor(red) frequency xlabel(#6, valuelabel labsize(vsmall)) width(1) start(1) discrete xtitle("")) /// (hist income2 if treat2 == 1, fcolor(green%0) lcolor(green) lpattern(dash) frequency xlabel(#6, valuelabel labsize(vsmall)) width(1) start(1) discrete xtitle("")) /// (hist income2 if treat3 == 1, fcolor(black%0) lcolor(black) lpattern(dash) frequency xlabel(#6, valuelabel labsize(vsmall)) width(1) start(1) discrete xtitle("")) /// , legend(order(1 "Control" 2 "Treatment 1" 3 "Treatment 2" 4 "Treatment 3"))
What I don't get is what are the slanted lines "joining" certain histogram bars to other, and how to get rid of them.
I should mention that for certain categorical codings (12, 13, 15), there are no observations.
P.S. This does not seem to be a problem unique to `twoway`. I get the same output if I run `hist`
Code:
hist income2 if treat3 == 1, fcolor(black%0) lcolor(black) lpattern(dash) frequency xlabel(#6, valuelabel labsize(vsmall))
Comment