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.
Related Posts with Connecting Labels from X Axis
F-test for Fixed Effect With Robust SEHi everyone, A few days ago i made a post and some of my questions answered very well. But there's …
Breusch-Pagan LM Test for Random Effect ModelHi everyone, I'm confused by xttest0 result and wondering about this result inference. My data cons…
Removing the intermediate 0 from string variableHey everyone, I have a string variable 'p2' that consists of ID codes formatted as follows "BBSC012…
If Command executed when condition is falseHi everyone Stata 16 I run capture regress and have an if-else command to handle errors. The data s…
How to create treated column after policy effective dateDear All STATALIST members I have a quick question about making treated column after policy effecti…
Subscribe to:
Post Comments (Atom)
0 Response to Connecting Labels from X Axis
Post a Comment