[R] Arrows Pointing to Curve

Frank E Harrell Jr f.harrell at vanderbilt.edu
Thu Sep 27 14:32:00 CEST 2007


Dylan Beaudette wrote:
> On Wednesday 26 September 2007, Lorenzo Isella 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
> 
> ?arrows
> 

The labcurve function in the Hmisc package has an option to label curves 
in that way at the point of maximum separation.

Frank

-- 
Frank E Harrell Jr   Professor and Chair           School of Medicine
                      Department of Biostatistics   Vanderbilt University



More information about the R-help mailing list