How can I change the alignment of the bars in a histogram without changing the x variable. The bars are centered with the x label. But I would like to have the x labels at the left corner of each bar. Here is my code:
Code:
twoway (histogram cont if cont>=-50 & cont<0 , freq discrete lcolor(black) fcolor(blue)) /// (histogram cont if cont>=0 & cont<=50, freq discrete lcolor(black) fcolor(red) ), /// xline(0) xlabel(-50(10)50) graphregion(color(white)) xtitle(Continous Measure) ytitle(Number of Observations) legend(off)
Comment