gadm_crop: crop a region to a specific rectangle

Description Usage Arguments Value Author(s) Examples

View source: R/00_S3_Definitions.R

Description

crop a region to a specific rectangle

Usage

1
gadm_crop(x, xmin, ymin, xmax, ymax)

Arguments

x

gadm_sp or gadm_sf Object containing regions.

xmin

numeric Longitude min

ymin

numeric Latitude min

xmax

numeric Longitude max

ymax

numeric Latitude max

Value

Object gadm_sf or gadm_sp

Author(s)

Jean Pierre Decorps <jean.pierre.decorps@gmail.com>

Examples

1
2
3
4
5
library(GADMTools)
data("Corsica")

area <- gadm_crop(Corsica, xmin=9.3, ymin=42.96, xmax=9.566, ymax=43.02819)
plotmap(area)

GADMTools documentation built on Aug. 5, 2021, 1:06 a.m.