Hi,
I came across this figure on the internet:

Is there any way I can create a figure like it in Stata? The features I am interested in is that it's a bar graph that shows values for two groups next to one another, one y-axis is reversed and indicates the percentage for one of the groups, and a second y-axis denotes the percentage point gap between the groups.
I tried -twoway bar- but struggled with placing two bars within one x-category next to one another and I tried -graph bar- where I struggled with everything else.
Does anyone have an idea? Here's the data I have guesstimated from looking at the plot:
Thanks
Nora
I came across this figure on the internet:
Is there any way I can create a figure like it in Stata? The features I am interested in is that it's a bar graph that shows values for two groups next to one another, one y-axis is reversed and indicates the percentage for one of the groups, and a second y-axis denotes the percentage point gap between the groups.
I tried -twoway bar- but struggled with placing two bars within one x-category next to one another and I tried -graph bar- where I struggled with everything else.
Does anyone have an idea? Here's the data I have guesstimated from looking at the plot:
Code:
clear input str10 cntry marriage cohabitation "France" 62 64 "Russia" 61 63 "Hungary" 58 60 "Poland" 30 35 "Estonia" 55 60 "Belgium" 65 75 "Norway" 65 83 "Sweden" 70 85 "NDL" 61 75 "UK" 63 81 "Italy" 25 45 end gen gap = cohabitation - marriage // Gap variable egen country = rank(gap), unique // country variable sorted by the size of the gap labmask country, value(cntry) // country variable sorted by the size of the gap -- labmask might be from SSC
Nora
Comment