viewSpectra | R Documentation |
Visualize statistics calculated through the bands of a hyperspectral image.
viewSpectra(x, ...)
x |
A numeric matrix or vector containing the values to be plotted at
each spectral band (wavelength). Generally, an object obtained with
|
... |
Further graphical parameters. See |
slideBrick()
p <- system.file('exdata', 'obory.dat', package = 'hyperbrick') im <- buildBrick(p, ref_layer = 35, spectral_feature = "radiance", hFOV = 36.8, vFOV = 36.8, height = 45) plotRGB(im, r = 63, b = 34, g = 11, scale = 90, axes = TRUE) sw <- slideWindows(im) lapply(sw, lines, col = "white") -> null_obj sb <- slideBrick(im, sw, fun = mean) head(sb) viewSpectra(sb, ylab = "Radiance")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.