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
Export output of levelsofHi Statalists! This will be my first posts, but I have been lurking around this forum for a while l…
Fixed effects probit and logit models with marginal coefficients evaluated at means I have some survey data and a dummy outcome variable. The data includes the region in which each in…
Creating dummy variables with category namesDear all, I have a dataset comprising thousands of individuals. For each individual I have, among ot…
Using weights with xtheckman | xtheckman's fixed effects equivalentHi, I am using six waves of the PSID to estimate several determinants (particularly wealth) of the …
Shaded bar between values of X axis of a line graphHi, I am making a line graph where x axis is the year. I want to highlight/shade the periods betwee…
Subscribe to:
Post Comments (Atom)
0 Response to changing the color of one bar
Post a Comment