Hello,
I have a basic doubt. I am trying to plot a graph on GDP per capita which has 2 bars- one for OECD and another for non OECD countries. I want to have two different colors for each bar group. But, the following command gives me the same color bar for OECD and non OECD countries.
graph bar (mean) wb_gdppercap, over(OECD,relabel(1 "Non OECD" 2 "OECD")) title("GDP per Capita")ytitle("GDP per capita") bar(1, color(maroon) fintensity(inten80)) bar(2, color(navy) fintensity(inten60))
Can someone please explain what I am doing wrong here? I have inserted the graph here for reference.
Thank you very much!
Related Posts with Different colors for graph bars
i. vs c.Could someone explain me what is the difference between i.variable and c.variable? …
Different output from estimates table when using stored estimatesHow do I preserve value labels when running estimates table with stored estimates? If I run estimat…
How to save my y and residual errors from a regression loop Could you tell me why I cannot save my y or residuals here? Everything working except last and I do…
ml maximize, technique(bhhh): option technique() not allowedHello, I have some problems using the maximum likelihood command of Stata to estimate a probit mode…
Calculating the Employment-Weighted Mean DifferentialI am currently investigating wage differentials by industry in Germany. My dataset gives me cross-se…
Subscribe to:
Post Comments (Atom)
0 Response to Different colors for graph bars
Post a Comment