Hi Everyone,
I'm having an oddly difficult time trying to graph something basic in Stata.
I want to produce a graph from marginsplot that shows bars of k-colors. In the example below, there are four regions, and I would like each bar for NE, N Cntrl, South, and West to be its own color.
I'm kinda at a loss - how do I change individual bar colors following marginsplot?
Cheers,
David.
I'm having an oddly difficult time trying to graph something basic in Stata.
I want to produce a graph from marginsplot that shows bars of k-colors. In the example below, there are four regions, and I would like each bar for NE, N Cntrl, South, and West to be its own color.
Code:
sysuse citytemp, clear regress tempjan tempjuly i.region cooldd margins, over(region) atmeans *below only uses the first color marginsplot, recast(bar) plotopts(color(red green blue orange)) *below produces an error marginsplot, name(`dv', replace) recast(bar) plotopts(bar(1, color(green)) bar(2, color(red)) bar(3, color(orange)) bar(4, color(yellow)))
Cheers,
David.
Comment