EBVstats | R Documentation |
This function is a wrapper of cellStats
used to compute
statistics for spatial indicators in the EBV class ecosystem
structure. To derive the spatial indicators see functions
echanges
and sampleIndicator
EBVstats(ccp, stats,
...)
ccp |
|
stats |
|
... |
Additional arguments in |
tibble
.
Wilson Lara Henao <wilarhen@gmail.com> [aut, cre], Victor Gutierrez-Velez [aut], Ivan Gonzalez [ctb], Maria C. Londono [ctb]
## RasterBrick of structural Essential Biodiversity Variables
## covering the extent of a location in the northern Amazon basin
## (Colombia) is imported:
path. <- system.file('amazon.grd',package = 'ecochange')
amazon <- brick(path.)
## Changes in layers of tree-canopy cover (TC) are computed by
## processing the 'amazon' brick:
def <- echanges(amazon, eco = 'TC',
change = 'lossyear',
eco_range = c(1,80),
get_unaffected = TRUE,
binary_output = FALSE,
mc.cores = 2)
## Function 'EBVstats' is used to compute ecosystem statistics
st_amazon <- EBVstats(def)
## A plot of the 'st_amazon' object
plot.EBVstats(st_amazon,
cex = 1.5,
xlab = 'Year',
ylab = 'Canopy cover (%)',
main = 'Ecosystem changes',
sub = 'Northern Amazon',
fill = 'Layer')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.