get_tree_matrix: Extract the Fractal Tree Matrix from a Tree Data Frame

View source: R/get_tree_matrix.R

get_tree_matrixR 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.


fractalforest documentation built on July 3, 2025, 1:09 a.m.