I want to change the color of one bar in a bar chart, but the bar() option does not seem to help.
Stata/SE 17.0 on Win10
Here is a minimal working example:
cls
clear all
input state date freq
3 1 14
3 2 15
3 3 11
3 4 15
2 1 4
2 2 4
2 3 1
2 4 4
1 1 1
1 2 7
1 3 4
1 4 5
end
graph bar freq, over(date) stack bar(2, color(red)) by(state)
Related Posts with changing the color of one bar
-xtoverid-Dear Statalists, I am new here and need help to download the community-contributed command -xtoveri…
Testing individual coefficients across different regressionsI want to understand the different impact of education and number of children on the probability of …
Question about reghdfe commandDear all.When we use reghdfe to run pannel fixed-effects model,which kind of Rsq should we report in…
Question about graph plotDear all.I have plot two graphs, namely, figure A and figure B. now I want to embed figure B into fi…
difference to difference-introduction of minimum wage in a specific yearDear users, As part of my coursework i am analysing the effect of introduction of minimum wage on e…
Subscribe to:
Post Comments (Atom)
0 Response to changing the color of one bar
Post a Comment