mf_legend_gl function

Plot a legend for a graduated lines map

Plot a legend for a graduated lines map

Deprecated.

This function plots a legend for graduated lines maps.

mf_legend_gl( pos = "topleft", val, col = "tomato4", lwd, title = "Legend Title", title_cex = 0.8, val_cex = 0.6, val_rnd = 2, frame = FALSE, bg, fg, cex = 1 )

Arguments

  • pos: position of the legend, one of "topleft", "top", "topright", "right", "bottomright", "bottom", "bottomleft", "left", "interactive" or a vector of two coordinates in map units (c(x, y))
  • val: break labels
  • col: lines color
  • lwd: lines widths
  • title: title of the legend
  • title_cex: size of the legend title
  • val_cex: size of the values in the legend
  • val_rnd: number of decimal places of the values in the legend.
  • frame: whether to add a frame to the legend (TRUE) or not (FALSE)
  • bg: background of the legend
  • fg: foreground of the legend
  • cex: size of the legend; 2 means two times bigger

Returns

No return value, a legend is displayed.

Examples

## Not run: plot.new() plot.window(xlim = c(0, 1), ylim = c(0, 1), asp = 1) mf_legend_gl(lwd = c(0.2, 2, 4, 5, 10), val = c(1, 2, 3, 4, 10.2, 15.2)) ## End(Not run)
  • Maintainer: Timothée Giraud
  • License: GPL (>= 3)
  • Last published: 2024-10-22