enlarge | R Documentation |
Enlarge the spatial domain of a
SpatialPolygons-class
object. If
width
isn't specified, then 10% of the maximum
distance between the points specified by the bounding
box is used. The
st_buffer
function is used to enlarge
x
.
enlarge(x, width, ...)
x |
A |
width |
The width to enlarge the study area. Distance from original geometry to include in the new geometry. Negative values are allowed. |
... |
Additional arguments to pass to
|
An object of class hero_enlarge
. This is
simply a list with eborder
(the enlarged
border), border
(the border of the original
coordinates), and the width of the enlargement.
eborder
and border
are
SpatialPolygons-class
objects.
Joshua French
# enlarge regular grid
# create x and y defining square border
x = seq(min(lon), max(lon), length = 60)
y = seq(min(lat), max(lat), length = 80)
border = border.grid(x, y)
e = enlarge(border)
plot(e)
# create x and y defininging an irregular grid
border2 = border.grid(lon, lat)
e2 = enlarge(border2)
plot(e2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.