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
generating a new var and replacing its values with the previous year's valuesHi everyone, A sample of my data looks as follows (my current data ). As you can see, the person 1's…
drop/keep with multiple conditional statementHi everyone, A sample of my data looks as follows (my current data). I am trying to keep those obser…
Alternative of Cronbach alpha (for single item measures)Hi, I've data on patients subjective health measured by a single question "How is your health today"…
trend and timeI want regress difference model in panel data. using two year data, for example, I want to estimate …
Chi-square for subsampleHi all, A snapshot of my data is below (I have 950 data points, so its only a small section). I am r…
Subscribe to:
Post Comments (Atom)
0 Response to changing the color of one bar
Post a Comment