tests/maps.R

suppressPackageStartupMessages(library(sf))

if (require(maps, quietly = TRUE)) {
 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 14, 2022, 5:08 p.m.