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
generating Year variable in a list of companiesHello, I have a list of 1700 companies and need to create a Year variable from 2010-2019 for each o…
Missing data at level 2 predictor variable - is it possible to do multiple imputation in Stata?Hi, I have missing data at level 2 for predictor variables, and I can't find a way to do multiple i…
Interpreting teffects/tebalanceHi everyone, May be a silly question, but I am having trouble finding clear information on how to i…
Dropping panels with too few observations in some yearsI have a panel dataset where the rows (panels) are local government areas and the columns are years.…
Why i get same results for Logit panel regression and its marginal effect?Dear all, Hope everyone is having good time in pandemic. I am having trouble in my marginal effect…
Subscribe to:
Post Comments (Atom)
0 Response to Connecting Labels from X Axis
Post a Comment