Learn R Programming

mapsf (version 0.1.1)

mf_base: Plot an sf object

Description

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

Usage

mf_base(x, col = "grey80", border = "grey20", lwd = 0.7, add = FALSE, ...)

Arguments

x

object of class sf or sfc

col

color

border

border color

lwd

border width

add

whether to add the layer to an existing plot (TRUE) or not (FALSE)

...

further parameters from plot for sfc objects

Value

No return value, a map is displayed.

Examples

Run this code
# NOT RUN {
library(sf)
mtq <- mf_get_mtq()
mf_base(mtq)
mf_base(mtq, col = "blue")
# }

Run the code above in your browser using DataLab