vvi: Visible vegetation index

vviR Documentation

Visible vegetation index

Description

This function calculates a visible vegetation index (VVI) from a RGB Raster* object.

Usage

## 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)

Arguments

r, g, b

Band numbers as integer.

x

A Raster or stars object.

Value

A VVI RasterLayer or stars object.

Author(s)

Florian Detsch, Tim Appelhans

References

Planetary Habitability Laboratory (2015): Visible Vegetation Index (VVI). Available online: http://phl.upr.edu/projects/visible-vegetation-index-vvi.

Examples

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)


environmentalinformatics-marburg/Rsenal documentation built on July 28, 2023, 6:09 a.m.