[R] Adding text outside lattice plot

Deepayan Sarkar deepayan.sarkar at gmail.com
Sun Dec 9 01:54:31 CET 2007


On 12/8/07, Judith Flores <juryef at yahoo.com> wrote:
> Hello,
>
>    I need to add some text in the upper left position,
> outside a lattice plot.
>
> xyplot(x~y)
> ltext(locator(1), label='My text')
>
> doesn't work.

library(grid)
ltext(grid.locator(), label='My text')

should.

-Deepayan



More information about the R-help mailing list