Description Usage Arguments Value Examples
A wrapper function to gDelaunayTriangulation()
to perform Delaunay
triangulation with additional options to specify thresholds for suppressing
long sided triangles
1 2 3 4 5 6 7 | get_tri(
input,
x,
y,
crs = "+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0",
qTSL = 0.975
)
|
input |
A data frame of locations with at least information on longitude and latitude coordinates of the locations. |
x |
A character value specifying the variable name of the longitude
information in |
y |
A character value specifying the variable name of the latitude
information in |
crs |
A character value specifying the coordinate reference system to
be used for Delaunay triangulation. Default is longlat projection with
datum WGS84 ( |
qTSL |
Maximum side length to be allowed to draw sides of triangles. Value can be between 0 to 1. Default value is 0.975. |
A SpatialPolygons object of Delaunay triangulation of
input
data
1 | #
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.