[R] plotting on the figure margin

Paulo Barata pbarata at infolink.com.br
Tue Sep 16 20:26:51 CEST 2008

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

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

E-mail: pbarata at infolink.com.br
Alternative e-mail: paulo.barata at ensp.fiocruz.br

More information about the R-help mailing list