?par

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

or use the 'lattice' package

Regards,
Yihui
--
Yihui Xie <[EMAIL PROTECTED]>
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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> Alternative e-mail: [EMAIL PROTECTED]
>

______________________________________________
R-help@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.

Reply via email to