View source: R/box_dimension.R
box_dimension | R Documentation |
R port of Dominik Seidel's fractal analysis "box-dimension" metric.
box_dimension(cloud, lowercutoff = 0.01, rm_int_box = FALSE, plot = FALSE)
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. |
Returns a list
box_dimension1rTwig
\insertRefbox_dimension2rTwig
\insertRefbox_dimension3rTwig
\insertRefbox_dimension4rTwig
\insertRefbox_dimension5rTwig
## Calculate Box Dimension
file <- system.file("extdata/cloud.txt", package = "rTwig")
cloud <- read.table(file, header = FALSE)
output <- box_dimension(cloud, plot = "ALL")
output
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.