Dear statalist users,
I am trying to add a line connecting the pair dots for each country in the figure attached. I don't want the default line that goes from the beginning to the end of the x axis, but a line just connecting the two dots. Do you have any idea whether I can do this? I think it may be changing/adding something in the line of code before the last one... I have checked the help file but I don't find the way to do it.
I believe the line connecting the pair of dots for each country will improve the visualisation by aiding interpretation. I also highly appreciate if you want to provide input regarding whether you believe the figure looks good as it is now, or whether the line connecting the dots will improve the data visualisation.
I also attach the code that I used to create the figure.
Thank you in advance for your input.
Best wishes,
Ana
Ana Méndez
PhD candidate
[learning #dataviz]

I am trying to add a line connecting the pair dots for each country in the figure attached. I don't want the default line that goes from the beginning to the end of the x axis, but a line just connecting the two dots. Do you have any idea whether I can do this? I think it may be changing/adding something in the line of code before the last one... I have checked the help file but I don't find the way to do it.
I believe the line connecting the pair of dots for each country will improve the visualisation by aiding interpretation. I also highly appreciate if you want to provide input regarding whether you believe the figure looks good as it is now, or whether the line connecting the dots will improve the data visualisation.
I also attach the code that I used to create the figure.
Thank you in advance for your input.
Best wishes,
Ana
Ana Méndez
PhD candidate
[learning #dataviz]
Code:
graph dot outcome_prop_2010 outcome_prop_2017 if pickone_outcome_sample_final==1 & sample_final==1, /// over(country, label(angle(h) labsize(vsmall)) sort(sorting_var)) scheme(s1mono) /// legend(size(vsmall) label(1 "2010") label(2 "2017") ring(0) position(8) cols(1) symy(1) symx(2) textw(1) bmargin(large) region(lstyle(none) color(none)) linegap(*5)) /// linetype(line) lines(lcolor(none) lw(vvthin)) /// ylabel(0(2)22,labsize(small) angle(horizontal))
Comment