mf_base: Plot an sf object

View source: R/mf_base.R

mf_baseR Documentation

Plot an sf object

Description

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

Usage

mf_base(
  x,
  col,
  border,
  alpha = NULL,
  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

alpha

opacity, in the range [0,1]

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)

...

ignored

Value

x is (invisibly) returned.

Examples

library(sf)
mtq <- mf_get_mtq()
mf_map(mtq, type = "base")
mf_map(mtq, type = "base", col = "blue")

riatelab/mapsf documentation built on June 9, 2025, 10:07 p.m.