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
Using regexp to extract variables from stringI have a string variable Code: People that provides a sentence about the number and type of people …
rowminI would like to create a new variable which takes the minimum value in each row, (ignoring the zeros…
Interacting Categorical VariableDear all, I have two categorical variables that are socialclass (1=low, 2=middle, 3=high) and jobty…
How to generate different matrices based on different factors and different factors levelsmata D = (1,1,1 \ 2,1,1 \ 3,1,2 \ 4,1,2 \ 5,1,3 \ 6,1,3 \ 7,2,1 \ 8,2,1 \ 9,2,2 \ 10,2,2 \ 11,2,3 \ …
â as missingThe imported data replaces the missing value symbol from the original data with an "â". My goal is t…
Subscribe to:
Post Comments (Atom)
0 Response to Connecting Labels from X Axis
Post a Comment