get_tree_matrix {fractalforest}R Documentation

Extract the Fractal Tree Matrix from a Tree Data Frame

Description

Extract the Fractal Tree Matrix from a Tree Data Frame

Usage

get_tree_matrix(tree_df)

Arguments

tree_df

A data frame containing the tree data, typically resulting from the build_tree function. The data frame should include columns from_x, from_y, to_x, and to_y, which represent the coordinates of the tree segments.

Details

This function extracts the start and end coordinates of the tree segments and returns the result as a matrix.

Value

A matrix of unique coordinates (x, y) representing the positions of the tree's segments.


[Package fractalforest version 1.0.1 Index]