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
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 -- Dylan Beaudette Soil Resource Laboratory http://casoilresource.lawr.ucdavis.edu/ University of California at Davis 530.754.7341
? 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
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
You might also look at ?Arrows in package IDPmisc and ?p.arrows in package sfsmisc. - Peter Ehlers> --- 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 > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > >