# NOT RUN {
#- import tls data
tls=data.table::fread(system.file("extdata", "Tree_t0.asc", package="VoxR"))
#- voxelisation
voxels = VoxR::vox(tls,0.05)
#- project into the xy plan
project = VoxR::project_voxels(voxels,"xy")
#- plot the number of voxels
VoxR::plot_projection(project,var = "nvox")
#- plot the number of points
VoxR::plot_projection(project,var = "npts")
#- plot the ratio npts/nvox
VoxR::plot_projection(project,var = "ratio")
#- plot the number of voxels with different color palette
VoxR::plot_projection(project,palette = terrain.colors)
#- plot the number of voxels with a 95% percentile threshold
VoxR::plot_projection(project,th = 0.95)
# }
Run the code above in your browser using DataLab