[R] plotting on the figure margin

Yihui Xie xieyihui at gmail.com
Wed Sep 17 03:54:56 CEST 2008


?par

see the 'xpd' argument; e.g. you may use legend(..., xpd = NA)

or use the 'lattice' package

Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Phone: +86-(0)10-82509086 Fax: +86-(0)10-82509086
Mobile: +86-15810805877
Homepage: http://www.yihui.name
School of Statistics, Room 1037, Mingde Main Building,
Renmin University of China, Beijing, 100872, China



On Wed, Sep 17, 2008 at 2:26 AM, Paulo Barata <pbarata at infolink.com.br> wrote:
>
> Dear R-list members,
>
> I am trying to put a legend just outside the plotting area
> of a graph.
>
> 1. Is there some way to plot symbols on the figure margin,
> in the same way as function "mtext" can write on the
> margin?
>
> 2. Is there some way to use the "legend" function (or some
> equivalent function) to plot a legend on the figure margin?
>
> 3. Any other way to plot either symbols or a legend
> on the margin?
>
> I use R 2.7.2, running on Windows XP.
>
> Thank you very much.
>
> Paulo Barata
>
> --------------------------------------------------------------------
> Paulo Barata
> Fundacao Oswaldo Cruz - Oswaldo Cruz Foundation
> Rua Leopoldo Bulhoes 1480 - 8A
> 21041-210  Rio de Janeiro - RJ
> Brazil
>
> E-mail: pbarata at infolink.com.br
> Alternative e-mail: paulo.barata at ensp.fiocruz.br
>



More information about the R-help mailing list