Description Usage Arguments Value Creation notes Future directions
Make study area polygons from the extent (bbox) of an sf layer. Includes scaling options to increase or decrease size of the polygon by a ratio or by a distance calculated in map units. Because of this, the distance parameter only works for projected layers.
1 | sf_studyArea(sfLayer, ratio = 1, dist = NULL)
|
sfLayer |
sf object |
ratio |
Numerical vector of length 1 or 2 (as it pertains to the x,y
axes). Default: 1 to create a basic study area polygon for the sfLayer.
Ignored if a |
dist |
Numerical vector of length 1 or 2 (as it pertains to the x,y
axes). Default: |
Returns a polygon sf layer that is a rectangle.
First created on 2019-Apr-22 while working on my IBM class project.
I may need to add checks to make sure negative distance values won't flip the min and max values in the extent creation section.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.