[R] how to change legend size in a figure
Baoqiang Cao
caobg at email.uc.edu
Tue Apr 18 15:38:16 CEST 2006
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:
plot(x1,y1,col=1,lty=1)
lines(x2,y2,col=2,lty=2)
...
legend(0.3,0.4,c("name1","name2",...),col=1:20,lty=1:20)
Any tips for making the legend fit the figure will very welcome! Thanks!
Best,
Baoqiang Cao
More information about the R-help
mailing list