mf_base function

Plot an sf object

Plot an sf object

Plot an sf object. This is mostly a wrapper around plot(st_geometry(x), ...).

mf_base( x, col = "grey80", border = "grey20", bg = "white", cex = 1, pch = 20, lwd = 0.7, lty = 1, add = FALSE, ... )

Arguments

  • x: object of class sf, sfc or sfg
  • col: color
  • border: border color
  • bg: background color
  • cex: point size
  • pch: pch (point type) for symbols
  • lwd: border width
  • lty: line or border type
  • add: whether to add the layer to an existing plot (TRUE) or not (FALSE)
  • ...: further parameters from plot for sfc objects

Returns

x is (invisibly) returned.

Examples

library(sf) mtq <- mf_get_mtq() mf_map(mtq, type = "base") mf_map(mtq, type = "base", col = "blue")
  • Maintainer: Timothée Giraud
  • License: GPL (>= 3)
  • Last published: 2024-10-22