[R] Increase the size of the boxes but not the text in a legend
alles.khan
alleskhan at gmail.com
Fri Apr 20 17:48:36 CEST 2012
Although an old topic,
To follow-up on the suggestion to alter the legend function.
Type "legend" in R, copy-paste the appearing code into you code-editor and
search for the line
points2(x1, y1, pch = pch[ok], col = col[ok], cex = pt.cex[ok],
the cex function controls the scaling, so you want the pt.cex become larger,
Change this line into, for example
points2(x1, y1, pch = pch[ok], col = col[ok], cex = pt.cex[ok]+1.5,
than you run in R
legend_large_box <- function (x, y ....etc.etc. the whole bunch of with the
altered legend code
and call the function legend_large_box within the plotting.
It worked for me.
--
View this message in context: http://r.789695.n4.nabble.com/Increase-the-size-of-the-boxes-but-not-the-text-in-a-legend-tp3759137p4574455.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list