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
Sample size estimation for difference-in-difference design with continuous outcomeDear all, I have spent some time looking for possibilities to estimate the required sample size for…
egen corr() with weightsDear Statalisters, I have panel data and want to compute a time series of cross-sectional correlati…
updating data in stataI want to add a value for instance '45' for country 'BE' in year '2004' (the fist row of 2004) under…
Line graph of the mean of all observationsHello all, I have data that have three variables: vehicle id, speed_kmh, and Time_of_Travel. I am …
Convergence not achieved with xtlogit, fe, but it does converge with xtlogit, reI am using xtlogit on the following data: input str2 st int date byte club float(combo l ca com) by…
Subscribe to:
Post Comments (Atom)
0 Response to Different colors for graph bars
Post a Comment