[R] how to change legend size in a figure

Christos Hatzis christos at silicoinsights.com
Tue Apr 18 15:50:42 CEST 2006

Use a smaller cex within legend (e.g. cex=0.75) to adjust the size of the
printed text.  This controls the size of the legend.  Also, you can play
with xjust and yjust for finer control of how the legend box is justified at
the specified position.


-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Baoqiang Cao
Sent: Tuesday, April 18, 2006 9:38 AM
To: r-help at stat.math.ethz.ch
Subject: [R] how to change legend size in a figure

Dear All,

I am producing a figure with many curves on it. How do I make the legends
for all those curves smaller so that it can fit the figure itself? The
commands I used for ploting are:


Any tips for making the legend fit the figure will very welcome! Thanks!

 Baoqiang Cao

R-help at stat.math.ethz.ch mailing list
PLEASE do read the posting guide!

More information about the R-help mailing list