plot {AMAPVox} | R Documentation |
Plot an object of class VoxelSpace
Description
plot a VoxelSpace
object.
Usage
plot(x, y, ...)
## S4 method for signature '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 signature '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,
...
)
Arguments
x |
the object of class VoxelSpace to plot |
y |
a subset of voxel index. A data.table with |
... |
additional parameters which will be passed to |
variable.name |
character, the name of the variable to plot |
palette |
character, a valid palette name (one of hcl.pals()) |
bg.color |
character, a valid background color name (one of colors()) |
width |
numeric, the width of the windows |
voxel.size |
numeric, the size of voxel in pixels |
unsampled.discard |
logical, whether to discard unsampled voxel |
empty.discard |
logical, whether to discard empty voxel (no hit) |
Details
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.
See Also
Examples
## Not run:
# 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)])
## End(Not run)
[Package AMAPVox version 2.2.1 Index]