Hi Victor,
looking at the code for legend, it looks like the same 'cex' value is
used for the text in the legend as the title.
Here is a trick though: draw the legend twice, with different cex
values, and omitting title or text:
plot(1)
legend(topright,c(a,b),title= )
legend(topright,c( ,
On 04/29/2011 05:21 AM, Victor Gabillon wrote:
Horizo - c(1,2,6,10,20)
legtext - paste(Horizo,sep=)
legend(topleft, legend=legtext,col=col,text.col=col,lwd=lwd,
lty=lty,cex=1.1,ncol=3,title = Horizons,title.col
=black,title.cex=1.4)
I am not sure, but the manual regarding legend seems to be
thanks everyone for the help.
I ended up copying and pasting the legend function from the R source files.
I changed it so that the title.cex is not set by default to cex and so
that this title.cex can be given as a parameter.
It works fine for me.
Note that if you make the title too big it
Hello,
Is it possible to change the text size of the title in a legend of a R plot?
I tried to directly change the title.cex argument but it seems not to work.
Trying :
Horizo - c(1,2,6,10,20)
legtext - paste(Horizo,sep=)
legend(topleft, legend=legtext,col=col,text.col=col,lwd=lwd,
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
Behalf Of Victor Gabillon
Sent: April-28-11 8:22 PM
To: r-help@r-project.org
Subject: [R] Change the text size of the title in a legend of a R plot.
Hello,
Is it possible to
5 matches
Mail list logo