View source: R/create_rect_inventory.R
| create_rect_inventory | R Documentation |
The minimum-area enclosing rectangle is computed, and if
rotate_axisaligned = TRUE, align the rectangle with the X and Y axes, and
consequently, coordinates of trees (and sensors) are rotated.
create_rect_inventory(
core_polygon_df,
trees,
north2x,
sensors = NULL,
rotate_axisaligned = TRUE
)
core_polygon_df |
A validated data.frame defining the inventory polygon
with columns |
trees |
A data.frame containing tree coordinates ( |
north2x |
Numeric. Clockwise angle from North to the X-axis (degrees). |
sensors |
Optional data.frame containing sensor coordinates ( |
rotate_axisaligned |
Logical. If |
Tree and sensor coordinates are rotated consistently.
A list with elements:
core_polygon_dfRectangular polygon (rotated axis-aligned if requested).
treesUpdated tree data.frame (rotated if requested).
sensorsUpdated sensor data.frame (rotated if requested, or NULL).
north2xUpdated orientation angle (degrees).
rotationApplied rotation angle in degrees. 0 if no rotation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.