getLayers: getLayers

Description Usage Arguments Details Value Examples

Description

This function is used to generate the layer data frame, The layer data frame composed of x, y coordinate for tree layer of different depth/radius points data.

Usage

1
getLayers(data, npoint, ntips, center = c(0, 0), unit_r = 1)

Arguments

data

tree data frame without x,y coordinate function

npoint

the total number of points of each layer

ntips

this is the input size of the strain/tree tips

center

the center of the circle

unit_r

the radius difference between tree layers

Details

call circle function in this function for each circular data frame and use rbind to stack all data together in one data frame, mark its radius in an additional column named layer_id.

Value

num_p is the number of points of each layer

Examples

1
2
3
4
5
layer_df <- getLayers(data = tree_df_25 ,
                      npoint = 25 * 40,
                      ntips = 25,
                      center = c(0,0),
                      unit_r = 1)

Norisama/VFtree documentation built on Dec. 8, 2019, 9:28 a.m.