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
(daily pannel data) i want to create time dummy variable for the weekHello everyone. I can not speak English very well. So I use Google Translator. I have unbalanced dai…
Interaction Terms in 2slsDear Users, This is my first post in Statalist. I am trying to use 2sls with a Dummy Interaction Te…
Outreg2 after a loopHi, I am using Stata 15 and I am having trouble getting estimates of a series of regressions with O…
Using xtile for a subset of casesI tried to use xtile with the if statement, but received the message, "option if not allowed". Is th…
ZINB on pooled panelHello, I am running a ZINB on a pooled panel using the vce (cluster ID) option, yet I have been adv…
Subscribe to:
Post Comments (Atom)
0 Response to Different colors for graph bars
Post a Comment