Learn R Programming

hsdar (version 0.5.1)

cubePlot: cubePlot

Description

Plotting 3D cube of hyperspectral data using rgl-package

Usage

cubePlot(x, r, g, b, ncol = 1, nrow = 1, sidecol = colorRamp(palette(heat.colors(100))), ...)

Arguments

x
Object of class HyperSpecRaster.
r
Integer. Index of band used as red channel. If omitted, the band closest to 680 nm is selected.
g
Integer. Index of band used as green channel. If omitted, the band closest to 540 nm is selected.
b
Integer. Index of band used as blue channel. If omitted, the band closest to 470 nm is selected.
ncol
Integer giving the column(s) in x which is/are used to plot the spectral dimension.
nrow
Integer giving the row(s) in x which is/are used to plot the spectral dimension.
sidecol
ColorRamp used to illustrate spectral dimension.
...
Further arguments (currently ignored)

See Also

HyperSpecRaster

Examples

Run this code
## Not run: 
# data(spectral_data)
# ras <- HyperSpecRaster(spectral_data, nrow = 9, ncol = 9)
# 
# cubePlot(ras)
# ## End(Not run)

Run the code above in your browser using DataLab