Hello, I have the following dataset:
I'm creating this graph (code below) , the distribution will look slightly off since the data is only a sample but I think the point remains clear.
I would like to add to my graph a label which is oriented vertically and lies along the top portion of the red dashed line saying "Min. wage" I know its possible to do this using the graph editor but I would like to do it within the code itself.
Please could you help me implement this. Something like this:
[ATTACH=CONFIG]n1758948[/ATTACH]
Thanks,
Jad
Code:
* Example generated by -dataex-. For more info, type help dataex clear input float ln_epw 8.505721 7.437201 9.702305 9.538844 7.009986 7.814476 9.241785 7.599996 7.759542 6.759835 9.597278 7.726066 6.309918 8.066607 7.974619 7.425327 7.973423 8.160519 8.910235 7.731011 7.305271 8.377105 7.519163 7.294528 8.07072 10.981047 7.625393 8.020644 7.338816 8.377583 8.008064 . 7.272729 7.428493 7.970263 8.129428 7.556132 9.278922 7.06104 8.406191 7.363429 8.339566 8.229511 8.058133 8.511058 7.524602 12.427462 8.235419 7.953169 7.090077 7.378916 8.02643 6.838162 8.207694 8.138704 9.887652 9.324944 8.346511 5.646624 7.86601 7.584902 7.605793 8.217089 7.495542 9.33305 7.226872 7.446752 6.214608 6.812445 7.091234 8.691147 6.339771 8.437664 7.333221 7.955872 7.627792 8.08215 7.812996 7.71338 6.959188 7.368619 7.661527 7.867531 8.818121 7.83354 7.718686 8.74319 7.98227 8.304725 9.147283 7.531909 8.229511 7.546581 7.495542 8.18208 8.434762 8.178867 8.040269 8.021804 end
I'm creating this graph (code below) , the distribution will look slightly off since the data is only a sample but I think the point remains clear.
Code:
twoway (kdensity ln_epw if owner==3 & region==1, lcolor(dknavy) lwidth(medthick)), /// ytitle("Density") xtitle("Ln monthly earnings per worker") xlabel(5(1)12) xsc(range(4.5 12.5)) /// xline(6.9077553, lwidth(medthick) lpattern(dash) lcolor(red))
Please could you help me implement this. Something like this:
[ATTACH=CONFIG]n1758948[/ATTACH]
Thanks,
Jad
Comment