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?
Code blocks on this forum need fixingThe code blocks on this forum give weird output every now and then. Specifically, multi-line code is…
Help with -foreach loop commandHi, I am trying to simplify my code to generate and replace multiple variables. Below is the code t…
question to stset _t and _t0Hi guys, I am new to Stata, just wondering how stata calculates the value of _t and _t0. Many thx …
rerun the code to count TFP and error continues to emerge as saying missing values in cluster variable __000002 not allowedHi, I am using almost the same code to count TFP, but it continues to saying" missing values in clus…
Trust game and a new method to measure reciprocityI am working in with a Trust Game Experiment and someone suggest me that I can use an alternative me…
Subscribe to:
Post Comments (Atom)
0 Response to Data visualization - How to break a label on tline into multiple lines?
Post a Comment