[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: Drawing an arrow from textbox to point [Stata 8]
Here is a daft example showing one way to build
your own arrow as three line segments:
scatter mpg weight, text(41 2650 "top car")
|| scatteri 41 2100 41 2500 , lcolor(black) recast(line)
|| scatteri 41 2100 41.3 2200, lcolor(black) recast(line)
|| scatteri 41 2100 40.7 2200, lcolor(black) recast(line) legend(off)
Neat arrows at some orientation other than vertical or horizontal
would require some trigonometry. The angle between barb and shaft
looks OK to many tastes at about 30 degrees. Stata 9 uses a default of
28.6 degrees, better known as 0.5 radian.
There is more on arrows in Stata 9 in a forthcoming Tip in
Stata Journal 5(2).
> Possible, but much easier in Stata 9.
> In Stata 8, you would need to create
> the elements of an arrow as line segments using
> calls to various parts of -twoway-. At least,
> that's the only way I know.
> > Is it possible to have an arrow directed to a single point
> from a text box in stata.
* For searches and help try: