R port of Dominik Seidel's fractal analysis "box-dimension" metric.
Arguments
- cloud
A point cloud matrix size n x 3. Non-matrices are automatically converted to a matrix.
- lowercutoff
The smallest box size determined by the point spacing of the cloud in meters. Defaults to 1 cm.
- rm_int_box
Remove the initial box as TRUE or FALSE. Defaults to FALSE.
- plot
Plot the results. The user can specify "2D", "3D", or "ALL" plots. FALSE disables plotting. Defaults to FALSE.
References
box_dimension1rTwig
box_dimension2rTwig
box_dimension3rTwig
box_dimension4rTwig
box_dimension5rTwig
Examples
## Calculate Box Dimension
file <- system.file("extdata/cloud.txt", package = "rTwig")
cloud <- read.table(file, header = FALSE)
output <- box_dimension(cloud, plot = "ALL")
#> Panning plot on rgl device: 1
output
#> [[1]]
#> # A tidytable: 9 × 2
#> log.box.size log.voxels
#> <dbl> <dbl>
#> 1 0 1.10
#> 2 0.693 1.95
#> 3 1.39 3.09
#> 4 2.08 4.11
#> 5 2.77 5.18
#> 6 3.47 6.14
#> 7 4.16 7.16
#> 8 4.85 8.23
#> 9 5.55 9.27
#>
#> [[2]]
#> # A tidytable: 1 × 4
#> r.squared adj.r.squared intercept slope
#> <dbl> <dbl> <dbl> <dbl>
#> 1 1.00 1.00 1.02 1.48
#>