Sorry, I'm too stupid to figure this out myself.
I want to make a density curve, so I'll do this:
I then want to label a point on the density curve:
Here, .015 is of course just a stupid guess to illustrate my point, I want the label to be here instead (as illustrated in MS Paint):

Is there a way to do that not in MS Paint?
Bonus question: I want to add a vertical line to the plot:
Is there a way I can make the vertical line start on the x-axis and end at the density curve?
Thanks so much
Go
I want to make a density curve, so I'll do this:
Code:
sysuse auto, clear kdensity mpg, gen(x y) at(mpg) nograph // Density curve twoway (line y x, sort)
Code:
// Label density curve qui sum mpg, detail local median `r(p50)' twoway (line y x, sort) /// (scatteri .015 `median' "`median' is the median") /// , legend(off)
Is there a way to do that not in MS Paint?
Bonus question: I want to add a vertical line to the plot:
Code:
twoway (line y x, sort) /// (scatteri .015 `median' "`median' is the median") /// , legend(off) xline(`median', lcolor(gs6))
Thanks so much
Go
Comment