Description Usage Arguments Details Value Examples
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.
1 |
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 |
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.
num_p is the number of points of each layer
1 2 3 4 5 | layer_df <- getLayers(data = tree_df_25 ,
npoint = 25 * 40,
ntips = 25,
center = c(0,0),
unit_r = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.