I have a graph with several lines and I can group them by pairs with the same legend
I would like to find a way, for this graph, to have the two lines for maize grouped only one legend "Maize" and the two other lines grouped in one legend "Flowers"
Code:
(connected maize_data year, color(`color`mn''*0.4) msize(vsmall)) (line maize_model year, color(`color`mn'') lpattern(l) lwidth(medium ..)) (connected flowers_data year, color(`color`mn''*0.4) msize(vsmall)) (line flowers_model year, color(`color`mn'') lpattern(l) lwidth(medium ..))/// , title("Global average") graphregion(color(white)) plotregion(color(white)) /// xscale(range(1970 2100)) xlab(1970(20)2100) /// ytitle("Yield (t/Ha)") xtitle("Year")
Comment