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
Looping over pairIs it possible to loop over a pair rather than one each? For example, as a hypothetical code, I woul…
Extensive and Intensive margins à la Hummels and Klenow (2005)Dear Stata users, I am studying the effect of migration on trade and I would like to start on calcul…
Nested foreachDear all, I have been struggling with the Code: foreach command for the following task: Code: …
"no observations r(2000)" error when using Wooldridge test for autocorrelation in panel data set Dear stata list, I have a question regarding the Wooldridge test for autocorrelation (command: 'xts…
quietly use ado which insists in noisily displayingI'm hoping to get advice on how to silence an ado which I cannot edit. Code: log using mylog.log,…
Subscribe to:
Post Comments (Atom)
0 Response to Different colors for graph bars
Post a Comment