Hello,
Please see my current graph.
I would like to split the "Arab Spring" label in two lines
My current code is as follows (I colored the line of the code in question in red to make it easier to find):
graph twoway (scatter vae year if countryname1==196, connect(direct) color(yellow)) (scatter vae year if countryname1==110, connect(direct) color(green) title("Voice and Accountability") ytitle("Index" "Score", orient(horizontal)) ylabel(,angle(0)) xtitle("") xlabel(2008(2)2020,grid) ylabel(,grid) text(0.4 2019.5 "Tunisia") text(-1.35 2019.5 "Libya") text(-1.55 2019.5 "Egypt")) (scatter vae year if countryname1==58, connect(direct) color(purple) tline(2010, lc(gray)) tlabel(2010 "Arab Spring", add labsize(*.75)) legend(label(1 "Tunisia") label(2 "Libya") label(3 "Egypt") col(3)))
I have tried several hours to find the right way to do this and I can't. I would tremendously appreciate any suggestions.
Thank you very much for your help and suggestions,
Related Posts with Data visualization - How to break a label on tline into multiple lines?
Determining annual percent change in binary variableHi there, I was working with a large dataset and I am working with trends over time. I was trying t…
foreach rename loop keeps stopping after one loop due to variable no longer in varlistI am writing a foreach loop to iterate over each variable, use its label as the new variable name, a…
Manually demeaning of variables of Panel data for all farms and run a linear regression for a particular extreme weather event.I have a panel data of monthly milk yield as a dependent variable and extreme weather ( in terms of …
Generalized Difference-in-differences with two-way fixed effect modelDear researchers, I have used the following model: Code: xtreg GG i.Event##(c.centered_Age c.cente…
How to compute Wald estimator for IV like thisDear all, I would like to compute Wald estimator to examine the plausibility of instrumental variab…
Subscribe to:
Post Comments (Atom)
0 Response to Data visualization - How to break a label on tline into multiple lines?
Post a Comment