Package: lacunr 1.0.2

lacunr: Fast 3D Lacunarity for Voxel Data

Calculates 3D lacunarity from voxel data. It is designed for use with point clouds generated from Light Detection And Ranging (LiDAR) scans in order to measure the spatial heterogeneity of 3-dimensional structures such as forest stands. It provides fast 'C++' functions to efficiently bin point cloud data into voxels and calculate lacunarity using different variants of the gliding-box algorithm originated by Allain & Cloitre (1991) <doi:10.1103/PhysRevA.44.3552>.

Authors:Elliott Smeds [aut, cre, cph], J. Antonio Guzmán Q. [cph]

lacunr_1.0.2.tar.gz
lacunr_1.0.2.zip(r-4.7-x86_64)lacunr_1.0.2.zip(r-4.7-arm64)lacunr_1.0.2.zip(r-4.6-x86_64)lacunr_1.0.2.zip(r-4.6-arm64)lacunr_1.0.2.zip(r-4.5-x86_64)
lacunr_1.0.2.tgz(r-4.6-x86_64)lacunr_1.0.2.tgz(r-4.6-arm64)lacunr_1.0.2.tgz(r-4.5-x86_64)lacunr_1.0.2.tgz(r-4.5-arm64)
lacunr_1.0.2.tar.gz(r-4.7-arm64)lacunr_1.0.2.tar.gz(r-4.7-x86_64)lacunr_1.0.2.tar.gz(r-4.6-arm64)lacunr_1.0.2.tar.gz(r-4.6-x86_64)
lacunr_1.0.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
lacunr/json (API)

# Install 'lacunr' in R:
install.packages('lacunr', repos = c('https://elliottsmeds.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/elliottsmeds/lacunr/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:
  • glassfire - California oak forest stand before and after 2020 Glass Fire

On CRAN:

Conda:

cpp

5.13 score 9 stars 7 scripts 386 downloads 7 exports 22 dependencies

Last updated from:7971fcd4ed. Checks:15 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK152
linux-devel-x86_64OK165
source / vignettesOK241
linux-release-arm64OK175
linux-release-x86_64OK175
macos-release-arm64OK218
macos-release-x86_64OK460
macos-oldrel-arm64OK225
macos-oldrel-x86_64OK389
windows-devel-arm64OK429
windows-devel-x86_64OK229
windows-release-arm64OK381
windows-release-x86_64OK172
windows-oldrel-x86_64OK168
wasm-releaseOK137

Exports:bounding_boxhr_plotlac_plotlacnorm_plotlacunaritypad_arrayvoxelize

Dependencies:abindclicpp11data.tablefarverggplot2gluegtableisobandlabelinglifecycleR6RColorBrewerRcppRcppArmadilloRcppThreadrlangS7scalesvctrsviridisLitewithr

Computing 3D lacunarity with lacunr
What is lacunarity? | Example lacunarity distributions | Working with real world data | voxelize() point clouds | Converting to 3D array with bounding_box() | Match dimensions using pad_array() | Comparing lacunarity pre- and post-fire | Measuring spatial correlation with $\mathrm{H}(r)$ | References

Last update: 2025-08-18
Started: 2024-05-30

Interfacing with lidR
Working with LAS objects | Voxelization using lidR | lacunr::voxelize() vs lidR::voxel_metrics()

Last update: 2025-08-18
Started: 2024-05-30

lacunr Quick-start guide

Last update: 2024-05-30
Started: 2024-05-30

Readme and manuals

Help Manual

Help pageTopics
Create voxel arraybounding_box bounding_box.default bounding_box.lac_voxels bounding_box.lasmetrics3d
California oak forest stand before and after 2020 Glass Fireglassfire
Plot lacunarity curve(s)hr_plot lacnorm_plot lac_plot
Calculate gliding-box lacunaritylacunarity
Add padding to 3D arraypad_array
Voxelize point cloudvoxelize