Dear all,
I am trying to make a bar chart that shows mean value of a variable (attitudes toward immigrants) for 19 European countries. I want to use different colors (or intensities of same color) for East European (ex-communist) countries and West European countries. I have created a dummy variable that distinguishes between these two categories of countries, but was not able to find any info about how i can make the graph.
Syntax is bellow and an example of the graph using only one color for the bars is attached.
Any help is much appreciated.
Best,
Zan Strabac
graph bar (mean) immigr_att [pw=pspwght], over(country, sort(1) lab(angle(45))) intensity (50)
Related Posts with Different colors for two groups of bars in a bar chart
Importing fixed width text dataHello, I am importing fixed width text data in stata using, for example, the following command infix…
Significance levels - explanation below tableHi everyone, After using the command reghdfe for my regressions I use esttab: Code: esttab using t…
Statistical test for comparing marginal probabilities for 2 sub-groups from different regressionsI have a probably quite simple question which I do not know how to implement on Stata. The backgrou…
Marginal effects after IVprobit is same as the IVprobit regression coefficientDear Statalist Users, I am hoping for some insight into the issue that I am facing. I am using IVP…
Svy for stratified experimental dataAlmost more of conceptual question, but I am wondering if one should use the svy prefix with specifi…
Subscribe to:
Post Comments (Atom)
0 Response to Different colors for two groups of bars in a bar chart
Post a Comment