Dear All, I have this data set
Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input double(_Y_treated _Y_synthetic year)
 4.797 4.7839860000000005 2009
 4.073 3.7585460000000004 2010
 3.814  4.156040000000001 2011
 4.693           4.559967 2012
 4.875           4.691477 2013
 3.608           3.828704 2014
 3.316           3.246187 2015
  8.17           5.311161 2016
11.204  5.821659000000001 2017
 10.73  5.816053999999999 2018
15.314           7.701801 2019
end
with code
Code:
twoway (line _Y_treated year) (line _Y_synthetic year), xline(2016, lp(dash))
and resulting graph
Array

My question is: how can I put the legend on the "upper left" (possibly in one or two rows) part of the graph? Thanks.