Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

EBVstats

EBV Stats


Description

This function is a wrapper of cellStats to compute statistics of essential biodiversity variables.

Usage

EBVstats(ccp, stats, 
    ...)

Arguments

ccp

RasterStack or NULL. If NULL then NULL is returned.

stats

character. vector of stats defined in cellStats. If missing then six summary statistics, including 'mean', 'sd', 'min', 'max', are computed.

...

Additional arguments in cellStats

Value

list of EBVstats.

Author(s)

Wilson Lara Henao <wilarhen@temple.edu> [aut, cre], Victor Gutierrez-Velez [aut]

Examples

## Warnings from GDAL/PROJ are suppressed.

## Brick with structural Essential Biodiversity Variables covering the
## extent of a location in the northern Amazon basin (Colombia):

path. <- system.file('amazon.grd',package = 'ecochange')
amazon <- suppressWarnings(brick(path.))

## Tree-cover layers in the 'amazon' brick are both formatted and
## deforested:

suppressWarnings(
    def <- deforest(amazon, names(amazon)[grepl('TC', names(amazon))],
                    ebv.vals = 0:100,
                    remnant.areas = TRUE, keep.ebv = TRUE, mc.cores = 2)
)

## Deforestation Statistics:

defstats <- suppressWarnings(EBVstats(def))

## barplot method:

barplot(defstats)

ecochange

Integrating Ecological Remote Sensing Data to Derive EBV Metrics

v1.3
GPL-3
Authors
Wilson Lara Henao [aut, cre], Victor Gutierrez-Velez [aut]
Initial release
2020-10-06

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.