View source: R/tapering_metrics.R
| stem_tapering_pc | R Documentation | 
Calculates the tapering of the trunk based on a linear regression on the diameters at each height of the trunk.
stem_tapering_pc(
  pc,
  slice_thickness = 0.1,
  maxtaperheight = 10,
  interval = 1,
  buttress = FALSE,
  thresholdbuttress = 0.0015,
  maxbuttressheight = 5,
  plot = FALSE
)
| pc | The trunk point cloud as a data.frame with columns X,Y,Z. | 
| slice_thickness | Numeric value (default = 0.1) that determines the thickness of the slice which is used to measure the diameter at each height. | 
| maxtaperheight | Numeric value (default = 10) that determines the maximum height used for the tapering calculation. | 
| interval | Numeric value (default = 1) that determines the interval over which the median of the diameters is taken to reduce influence of outliers for the taper measurement. Choose interval value equal to the slice_thickness if you want to use all the calculated diameters. | 
| buttress | Logical (default=FALSE), indicates if the trees have buttresses (higher than breast height). | 
| thresholdbuttress | Numeric value (default=0.001). Parameter of the
 | 
| maxbuttressheight | Numeric value (default=7). Parameter of the
 | 
| plot | Logical (default=FALSE), indicates if the taper curve is plotted. | 
list with tapering coefficients a and b, dataframe T with the diameters at each respective height, and the taper plot.
## Not run: 
# Read trunk point cloud
pc_trunk <- read_tree_pc(PC_path = "path/to/point_cloud.txt")
# calculate the tapering
output <- stem_tapering_pc(pc_trunk)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.