Description Usage Arguments Value Author(s) References See Also Examples
classify.map
classifies the Habitat Suitability Map (HSM) using suitability classes.
1 | classify.map(map, suit.classes, output.name = NULL, load.map = FALSE)
|
map |
unclassified suitability map name from GRASS. |
suit.classes |
object of class |
output.name |
string. Name for classified map. |
load.map |
logical. Whether the map should be uploaded as an object of class |
Function classify.map
allows to classify the HSM according to breaks, which represents limits for intervals in the four suitability classes (unsuitable, marginal, suitable and optimal; Hirzel et al., 2006). Those values can be obtained by using CBI boyce
. HSM classified map layer in GRASS can be also uploaded into R by setting load.map
to TRUE.
Fernando Canovas fcgarcia@ualg.pt
Hirzel, A.H., Le Lay, G., Helfer, V., Randin, C., Guisan, A. (2006). Evaluating the ability of the habitat suitability models to predict species presences. Ecological Modelling 199, 142-152.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | ## Not run:
# starting GRASS session
initGRASS("/usr/bin/grass-7.0.0", home=tempdir())
initGRASS("C:/GRASS", home=tempdir())
data(apis.enirg)
# presences table
lina <- apis.enirg$presences
# loading the environmental information in batch
predictor.names <- c("tann", "mxtwm", "mntcm", "rfdm", "rfseas")
predictor.maps <- paste("std_", predictor.names, sep="")
file.names <- paste(system.file(package = "ENiRG"),
"/ext/", predictor.names, ".asc", sep="")
import.egvs(file.names, predictor.names)
# standardization
stdz.maps(predictor.names, predictor.maps)
# performing the Ecologigal Niche Factor Analysis (ENFA)
enirg(presences.table = lina, qtegv.maps = predictor.maps,
species.name = "African", nf = 3, scannf = FALSE,
method = "normal") -> apis.enfa
enirg.predict(apis.enfa, load.map = TRUE, method = "normal") -> apis.hsm
data(cbi.results)
classify.map(map = "African_predicted_hsm",
suit.classes = cbi.results,
output.name = "African_hsm_class") -> apis.hsm.class
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.