Hello,
I keep getting an error with the code below, although I have used a similar code in the past with no issues.
"parentheses do not balance"
```
twoway (connected lnnumber lnav_area if Iso_code=="EGY", /* mlabcolor(green) mlabel(Iso_code)*/ lcolor (green) mcolor(green) msize(vsmall) msymbol(sh)) ///
(connected lnnumber lnav_area if Iso_code=="JOR", /* mlabcolor(red) mlabel(Iso_code) */ lcolor (red) mcolor(red) msize(small) msymbol(sh)) ///
(connected lnnumber lnav_area if Iso_code=="OMM", /* mlabcolor(orange) mlabel(Iso_code) */ lcolor (orange) mcolor(orange)msize(small) msymbol(sh)) ///
(connected lnnumber lnav_area if Iso_code=="LBN", /*mlabcolor(purple) mlabel(Iso_code) */ lcolor (blue) mcolor(blue) msize(small) msymbol(sh)) ///
(connected lnnumber lnav_area if Iso_code=="SAU", /*mlabcolor(black) mlabel(Iso_code) */ lcolor (brown) mcolor(brown) msize(small) msymbol(sh)), ///
(connected lnnumber lnav_area if Iso_code=="USA", /*mlabcolor(purple) mlabel(Iso_code) */ lcolor (purple) mcolor(purple) msize(small) msymbol(sh)), ///
(connected lnnumber lnav_area if Iso_code=="FRA", /*mlabcolor(red) mlabel(Iso_code) */ lcolor (red) mcolor(red) msize(small) msymbol(sh)), ///
xtitle(Log holding size (Ha)) ytitle(Log number of holdings)) legend(label(1 "Egypt (2010)") label(2 "Jordan (2007)") label(3 "Oman (2013)") label(4 "Lebanon (2010)") label(5 "Saudi Arabia (2015)") label(6 "United States (2012)") label(7 "France (2010)"))
```
I am trying to create a graph similar to the one attached.
0 Response to Connecting Labels from X Axis
Post a Comment