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 <jp.decorps@epiconcept.fr>

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)

Epiconcept-Paris/GADMTools documentation built on March 6, 2020, 10:24 a.m.