Hey,
I am trying to put labels on vertical lines in a twoway line graph. I was first trying to use xlabel() for this purpose but could not figure out how to get the labels at the top of the line. I instead opted for the Text(xxx xxx "xx") command which worked satisfactorily.
My problem now, I will attach a image below, is that the lines are too tight to fit the labels. My idea is to increase the blank space above the graph while keeping the lines the same length and maybe adding some "arrows" from the label to the line, (I think the labels might be too small to read if I just put them right above the vertical lines).
I have used this command to execute the graph
twoway (line so_innehav1 date1), xline(20131, lapattern(dash) lcolor(red) text(600000 20131 "QE1")
I am new here and this is my first post so I am sorry if it is not perfectly organized.
Array
Related Posts with Vertical Line Label
Current and Lagged Values of an Independent Variable in xtabond2Hi everyone! May I ask if it is technically correct to include both current and lagged values of an …
Creating a sum variable which depends on 2 other variablesHello! I am currently working on a panel dataset containing, amongst others, the variables "compani…
Propensity Score Matching - Regression on a matched sample and introducing new controlsHi, I am using propensity score matching to reduce selection bias and then running a regression on …
Nested foreach loops with panel dataDear Statalists, I am fairly new to Stata and am facing some issues regarding nested foreach loops.…
market participationsHi, I have these variables in a database: exporter / importer / productcode / milk milk is the valu…
Subscribe to:
Post Comments (Atom)
0 Response to Vertical Line Label
Post a Comment