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
Create bar charts with data in multiple columnsHello! I'm using ODK to collect data in the field, for example symptoms experienced by cases, as che…
how to calculate the Marginal Effects after xtreg commandHi I am new to use STATA for analysis and struggling to estimate marginal effects. I am examining t…
How to show different colours for different observations in scatter plot?Hi there, I have generated scatter plots for a numerical viable change by years in various industri…
goodness of fit and multi-linear regression analysisHi experts, It did not work when I ran "estat gof" after a multivariable linear regression model. I…
Meta-regression - subgroup analysesHi to everybody, Is it correct to conduct the meta-analysis by subgroups even if there are groups th…
Subscribe to:
Post Comments (Atom)
0 Response to changing the color of one bar
Post a Comment