[R] Arrows Pointing to Curve

John Kane jrkrideau at yahoo.ca
Thu Sep 27 11:59:54 CEST 2007


? arrows

plot(1:10)
text(2,5, "Point")
arrows(3,5, 4.5, 5)

--- Lorenzo Isella <lorenzo.isella at gmail.com> wrote:

> Dear All,
> I hope this is not a FAQ, but my online research was
> not fruitful.
> Consider a standard 2D plot generated with the
> "plot" command.
> I would like to introduce inside the graph some text
> with an arrow 
> pointing to a specific position of the plotted
> function.
> Is this doable in R? Can anyone provide me with an
> example?
> Many thanks
> 
> Lorenzo



More information about the R-help mailing list