maps_to_sp: Helper function to slice and dice a map and convert it to an...

Description Usage Arguments Value

Description

Helper function to slice and dice a map and convert it to an sp() object

Usage

1
2
maps_to_sp(regions = "Belgium", xlim = c(2.4, 6.5), ylim = c(49, 52),
  length_out = 100, clip = TRUE)

Arguments

regions

list of regions (countries to convert)

xlim

longitude bounding box values

ylim

latitude bounding box values

length_out

segment output length

clip

bolean TRUE / FALSE, clip polygons on bounding box

Value

an spatialPolygon object which can be used for subsetting, and the bounding box constraining the object


khufkens/ceipr documentation built on May 20, 2019, 11:58 a.m.