search for: legtext

Displaying 3 results from an estimated 3 matches for "legtext".

Did you mean: _etext
2011 Apr 29
3
Change the text size of the title in a legend of a R plot.
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...
2010 May 03
2
Plotting legend outside of multiple panels
Hello, I have used layout() to produce to 2 plots on a page, leaving a plotting space above them. I would like "Legend", which will actually be a real legend, to be centered above the two graphs. Right now I am only able to position "Legend" above the second graph that I create... obviously I am stuck in its margin space. Is there a way to draw the legend in the empty
2010 May 05
0
R-help Digest, Vol 87, Issue 5
...legend in there with no graph. You print a blank dummy graph and then add the legend to the "blank" layout panel like so: if (floatLegend) { # We want to float the legend independently # so we have to add it here as the only visible component of a # dummy graph. legText <- yourLegendNames # create a blank graph -- automatically scales -1 to +1 on both axes op <- par(mar=plotMargins) tsFake <- barplot(0,0, axes=FALSE) legend(x=1, y=0, legend=legText, # set fill, angle, density to match your real graph scheme...