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
Long to WideHey, I have a long dataset that I want to convert to wide which looks like below. I've been reading…
Significance at 5% or 10% for a regression outputDear Stata Members I would like to ask a question on interpreting the significance of results based…
Calculate gini coefficients for each groups of a datasetHello, I want to calculate ginicoefficients for each group of a dataset. The table shows an example…
Loop to change bunches of variable namesHello Statalist, I have bunches of vairables named like ABC_daily_count_costANDinsulinAN Breitbart_…
Determining Causal Relationship using instrumental variableI have used the "xtivreg" command to account for endogeneity (My IV is Deviation from Average Rainfa…
Subscribe to:
Post Comments (Atom)
0 Response to Vertical Line Label
Post a Comment