vvi | R Documentation |
This function calculates a visible vegetation index (VVI) from a RGB
Raster*
object.
## S4 method for signature 'missing'
vvi(r = 1, g = 2, b = 3)
## S4 method for signature 'Raster'
vvi(x, r = 1, g = 2, b = 3)
## S4 method for signature 'stars'
vvi(x, r = 1, g = 2, b = 3)
r, g, b |
Band numbers as |
x |
A |
A VVI RasterLayer
or stars
object.
Florian Detsch, Tim Appelhans
Planetary Habitability Laboratory (2015): Visible Vegetation Index (VVI). Available online: http://phl.upr.edu/projects/visible-vegetation-index-vvi.
library(RColorBrewer)
data(gmap_hel)
plotRGB(gmap_hel)
gmap_hel_veg = vvi(gmap_hel)
plot(gmap_hel_veg, col = brewer.pal(5, "BrBG"), alpha = .5, add = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.