Description Usage Arguments Author(s) Examples
View source: R/region2SpatialPolygon.r
creates polygon from raster extent
1 2 | extent2SpatialPolygon(ext)
region2SpatialPolygon(region,v_area=region)
|
ext |
raster extent or vector of region limits (xmax, xmax, ymin, ymax) |
region, v_area |
region identifier as defined in the region_definitions file. |
Robert K. Bauer
1 2 3 4 5 | r <- regions("lion")
ext <- extent(c(r$xlim,r$ylim))
extent2SpatialPolygon(ext)
region2SpatialPolygon("lion")
|
Loading required package: maps
Loading required package: mapdata
Loading required package: raster
Loading required package: sp
Loading required package: extrafont
Registering fonts with R
class : SpatialPolygons
features : 1
extent : 2.5, 9, 39, 44.5 (xmin, xmax, ymin, ymax)
coord. ref. : NA
class : SpatialPolygons
features : 1
extent : 2.5, 9, 39, 44.5 (xmin, xmax, ymin, ymax)
coord. ref. : NA
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.