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
Direction of bias?Dear all, I am trying to determine directions of biased (upward or downward) estimates in my study …
To both experienced Stata programmers, and Stata users: How do you prefer to have the command, as a post estimation or as a prefix?Good afternoon, I have written a command to estimate robust variance post Seemingly Unrelated Regre…
Mediation Analysis with Binary Outcome: Adding Survey WeightsI am using paramed in Stata 15.1 to do mediation with a continuous mediator and a binary outcome. I …
Background Color Twoway ChartDear all, I am trying to change the background colour of a twoway chart but it is not working, I ha…
can i use mi chained logistic and how to weight respondentsi have combined survey data sets from 32 countries and have about 90k respondents, the number of res…
Subscribe to:
Post Comments (Atom)
0 Response to Vertical Line Label
Post a Comment