plot.Rd
plot a VoxelSpace
object.
plot(x, y, ...)
# S4 method for VoxelSpace,missing
plot(
x,
y,
variable.name = "nbSampling",
palette = "viridis",
bg.color = "lightgrey",
width = 640,
voxel.size = 5,
unsampled.discard = TRUE,
empty.discard = TRUE,
...
)
# S4 method for VoxelSpace,data.table
plot(
x,
y,
variable.name = "nbSampling",
palette = "viridis",
bg.color = "lightgrey",
width = 640,
voxel.size = 5,
unsampled.discard = TRUE,
empty.discard = TRUE,
...
)
the object of class VoxelSpace to plot
a subset of voxel index. A data.table with i, j, k
columns.
Missing parameter means whole voxel space.
additional parameters which will be passed to rgl::plot3d()
.
character, the name of the variable to plot
character, a valid palette name (one of hcl.pals())
character, a valid background color name (one of colors())
numeric, the width of the windows
numeric, the size of voxel in pixels
logical, whether to discard unsampled voxel
logical, whether to discard empty voxel (no hit)
Plot an object of class VoxelSpace in a 3d device. By default it plots the sampling intensity but the user can choose any variable available in the voxel file.
if (FALSE) {
# load a voxel file
vxsp <- readVoxelSpace(system.file("extdata", "tls_sample.vox", package = "AMAPVox"))
# plot sampling intensity by default
plot(vxsp)
# plot PAD
plot(vxsp, variable.name = "PadBVTotal", palette = "YlOrRd")
# plot a subset
plot(vxsp, vxsp@data[k > 4, .(i, j, k)])
}