tests/maps.R

suppressPackageStartupMessages(library(maps))
suppressPackageStartupMessages(library(sf))

m = map(xlim = c(4,9), ylim = c(48,55), fill = TRUE, plot = FALSE)
st_as_sf(m)
m = map(xlim = c(4,9), ylim = c(48,55), plot = FALSE)
st_as_sf(m, fill = FALSE)
st_as_sf(map(), fill = FALSE)
st_as_sf(map(fill = TRUE))
st_as_sf(map(), fill = FALSE, group = FALSE)
st_as_sf(map(fill = TRUE), group = FALSE)

Try the sf package in your browser

Any scripts or data that you put into this service are public.

sf documentation built on July 26, 2021, 5:07 p.m.