rlegend
is a version of legend
for Rthat implements
plot=FALSE
, adds grid=TRUE
, and defaults lty, lwd,
pch
to NULL
and checks for length>0
rather than
missing()
, so it's easier to deal with non-applicable
parameters.rlegend(x, y, legend, fill, col = "black", lty = NULL, lwd = NULL, pch = NULL, angle = NULL, density = NULL, bty = "o", bg = par("bg"), pt.bg = NA, cex = 1, xjust = 0, yjust = 1, x.intersp = 1, y.intersp = 1, adj = 0, text.width = NULL, merge = do.lines && has.pch, trace = FALSE, ncol = 1, horiz = FALSE, plot = TRUE, grid = FALSE, ...)
legend
FALSE
to suppress drawing the legend. This
is used the compute the size needed for when the legend is drawn
with a later call to rlegend
.TRUE
if the grid
package is in effectlegend
rect
and text
. rect
has
elements w, h, left, top
with size/position information.legend