make.clip.poly | R Documentation |
Makes a polygon from a bounding box to use for clipping the coastline, or other SpatialPolygons objects
## S4 method for signature 'matrix'
make.clip.poly(bbox, crs)
bbox |
2x2 matrix |
crs |
CRS object defining the projection of the SpatialPolygons object to be clipped |
SpatialPolygons
object
bbox
for creation of bbox matrix from DeponsRaster
data(bathymetry)
bbox <- cbind("min"=c(549517, 6155000), "max"=c(636000, 6210000))
rownames(bbox) <- c("x", "y")
clip.poly <- make.clip.poly(bbox, crs(bathymetry))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.