cubePlot

Share:

Description

Plotting 3D cube of hyperspectral data using rgl-package

Usage

1
2
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)

Author(s)

Lukas Lehnert

See Also

HyperSpecRaster

Examples

1
2
3
4
5
6
7
## Not run: 
data(spectral_data)
ras <- HyperSpecRaster(spectral_data, nrow = 9, ncol = 9)

cubePlot(ras)

## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.