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
Esttab problem with interaction fixed effectHello, I am using a survey dataset (the World Values Survey) and trying out the following code in S…
use loop (e.g., foreach) across two vars to derive a third var (30 iterations)Hello All, I have 30 pairs of variables from which I need to derive 30 new variables. I'd like to u…
PlottingThere are two groups- X and Y. X has n1 observtion, Y has n2 observation. Each observation of X and …
GSEM in STATAHello. I'm a new user of STATA and struggle to get thinks done. I want to build a GSEM model where t…
Granger test and var (xtvar, prHi everyone, I am encountering a few problems when I tried to run var codes to be followed by a Gra…
Subscribe to:
Post Comments (Atom)
0 Response to Different colors for two groups of bars in a bar chart
Post a Comment