echanges {ecochange} | R Documentation |
Ecosystem changes
Description
This function produces ecosystem-change maps by masking cell values in a layer of ecosystem changes over a target set of ecosystem variables. The function also allows focusing the ecosystem-change analysis on a species distribution range.
Usage
echanges(ps, eco = names(ps[[1:(nlayers(ps) -
1)]]), change = names(ps[[(nlayers(ps))]]),
sp_dist, eco_range = c(1,
100), change_vals = 1:19,
sp_dist_range = c(1,
1), spread = TRUE,
get_unaffected = TRUE,
binary_output = FALSE,
noDataValue = 0,
mc.cores = round(detectCores() *
0.6, 0), ...)
Arguments
ps |
|
eco |
|
change |
|
sp_dist |
|
eco_range |
|
change_vals |
|
sp_dist_range |
|
spread |
|
get_unaffected |
|
binary_output |
|
noDataValue |
|
mc.cores |
|
... |
If |
Value
Class echanges
.
Author(s)
Wilson Lara Henao <wilarhen@gmail.com> [aut, cre], Victor Gutierrez-Velez [aut], Ivan Gonzalez [ctb], Maria C. Londono [ctb]
References
Jetz, W., McGeoch, M. A., Guralnick, R., Ferrier, S., Beck, J., Costello, M. J., ... & Meyer, C. (2019). Essential biodiversity variables for mapping and monitoring species populations. Nature Ecology & Evolution, 3(4), 539-551.
Hansen, M. C., Potapov, P. V., Moore, R., Hancher, M., Turubanova, S. A., Tyukavina, A., ... & Kommareddy, A. (2013). High-resolution global maps of 21st-century forest cover change. science, 342(6160), 850-853.
Pekel, J. F., Cottam, A., Gorelick, N., & Belward, A. S. (2016). High-resolution mapping of global surface water and its long-term changes. Nature, 540(7633), 418-422.
Pereira, H.M., Ferrier, S., Walters, M., Geller, G.N., Jongman, R.H.G., Scholes, R.J., Bruford, M.W., Brummitt, N., Butchart, S.H.M., Cardoso, A.C. and Coops, N.C., 2013. Essential biodiversity
Sexton, J. O., Song, X. P., Feng, M., Noojipady, P., Anand, A., Huang, C., ... & Townshend, J. R. (2013). Global, 30-m resolution continuous fields of tree cover: Landsat-based rescaling of MODIS vegetation continuous fields with lidar-based estimates of error. International Journal of Digital Earth, 6(5), 427-448. variables. Science, 339(6117), pp.277-278.
Examples
## 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 <- brick(path.)
## Changes in layers of tree-canopy cover (TC) in the 'amazon'
## brick are computed:
def <- echanges(amazon, eco = 'TC',
change = 'lossyear',
eco_range = c(1,80),
get_unaffected = TRUE,
binary_output = FALSE,
mc.cores = 2)
## Method 'plot.echanges' allows comparing rasters using a common scale bar:
plot.echanges(def)