View source: R/createPlotPoly.r
createPlotPoly | R Documentation |
This function creates a "rectangular" SpatialPolygon
object with the same dimensions as a plot window. It is especially useful for cropping subsequent rasters or SpatialPolygon
objects that would benefit from cropping. A plot must be made before calling this function.
createPlotPoly(x = NULL)
Either |
|
SpatialPolygon
data(mad0) plot(mad0) poly <- createPlotPoly(mad0) plot(poly, border='blue') plot(mad0, add=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.