[R] Change the text size of the title in a legend of a R plot.
Victor Gabillon
victor.gabillon at inria.fr
Fri Apr 29 05:21:58 CEST 2011
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,
lty=lty,cex=1.1,ncol=3,title = "Horizons",title.col ="black",title.cex=1.4)
gives the following error (sorry in french):
Erreur dans legend("topleft", legend = legtext, col = col, text.col =
col, :
argument(s) inutilisé(s) (title.cex = 1.4)
saying title.cex argument as been ignored.
Thank you for helping.
Victor
More information about the R-help
mailing list