View source: R/transformations.r
rotate.shp | R Documentation |
Given some polygon within the bounding box of a Master Sample rotate it by theta defined by that bounding box either backwards or forwards.
rotate.shp(shp, bb, back = TRUE)
shp |
Any polygon within the sample frame defined as a spatial features object. |
bb |
Special shape file defining the bounding box with attributes for centroid and rotation. |
back |
Boolean for whether or not the rotation is back to the original rotated bounding box. |
rotated sf spatial object.
## Not run: data(NS_bioregion) bb <- getBB() pts.shp <- rotate.shp(shp = NS_bioregion, bb = bb) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.