View source: R/region2SpatialPolygon.r
region2SpatialPolygon | R Documentation |
creates polygon from raster extent
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
r <- regions("lion")
ext <- extent(c(r$xlim,r$ylim))
extent2SpatialPolygon(ext)
region2SpatialPolygon("lion")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.