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
nested structureI want to build a two-level nested structure model, as I have in the bottom (classic rail and her) a…
Estimating confidence intervals of the cumulative structural impulse–response functionsHello, I have estimated csirf following the instructions from this post: https://blog.stata.com/201…
Adding title to graphs already in memoryHi, I have a do-file that generates a very large number of plots in a systematic fashion (say 100+)…
summing up total number of eventsIn a prospective study with 336 patients, I have a variable "number_of_events_since_operation". It c…
Confidence Interval around estat sbsingleI have used estat sbsingle to find a structual break around an unknown date. The command found here …
Subscribe to:
Post Comments (Atom)
0 Response to changing the color of one bar
Post a Comment