lawn_planepoint | R Documentation |
Takes a triangular plane as a data-Polygon and a data-Point within that triangle and returns the z-value at that point.
lawn_planepoint(pt, triangle, lint = FALSE)
pt |
The Point for which a z-value will be calculated. |
triangle |
A Polygon feature with three vertices. |
lint |
(logical) Lint or not. Uses geojsonhint. Takes up increasing
time as the object to get linted increases in size, so probably use by
default for small objects, but not for large if you know they are good
geojson objects. Default: |
The Polygon needs to have properties a, b, and c that define the values at its three corners.
The z-value for pt (numeric).
Other interpolation:
lawn_hex_grid()
,
lawn_isolines()
,
lawn_point_grid()
,
lawn_square_grid()
,
lawn_tin()
,
lawn_triangle_grid()
pt <- lawn_point(c(-75.3221, 39.529)) triangle <- '{ "type": "Feature", "properties": { "a": 11, "b": 122, "c": 44 }, "geometry": { "type": "Polygon", "coordinates": [[ [-75.1221, 39.57], [-75.58, 39.18], [-75.97, 39.86], [-75.1221, 39.57] ]] } }' lawn_planepoint(pt, triangle)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.