View source: R/POST_FATE.graphics.R
POST_FATE.graphics | R Documentation |
FATE
simulationThis script is designed to produce a set of graphical
representations for a FATE
simulation. Graphics can be of three
types : 1) representing an evolution through time (of abundance, light,
soil) ; 2) visualizing the goodness of the modelisation (presence/absence,
validation statistics) : 3) or representing a spatial distribution for a
specific year (richness, abundance, light, soil).
POST_FATE.graphics(
name.simulation,
file.simulParam = NULL,
years,
no_years,
opt.ras_habitat = NULL,
doFunc.evolCov = TRUE,
doFunc.evolPix = TRUE,
doFunc.evolStab = TRUE,
evolPix.cells_ID = NULL,
evolStab.mw_size = 3,
evolStab.mw_step = 1,
evol.fixedScale = TRUE,
doFunc.valid = TRUE,
valid.mat.PFG.obs,
doFunc.mapPFGvsHS = TRUE,
doFunc.mapPFG = TRUE,
mapPFGvsHS.stratum = "all",
binMap.method,
binMap.method1.threshold = 0.05,
binMap.method2.cutoff = NULL,
mapPFG.stratum_min = 1,
mapPFG.stratum_max = 10,
mapPFG.doBinary = TRUE,
opt.doPlot = TRUE,
opt.no_CPU = 1
)
name.simulation |
a |
file.simulParam |
default |
years |
an |
no_years |
an |
opt.ras_habitat |
(optional) default |
doFunc.evolCov |
default |
doFunc.evolPix |
default |
doFunc.evolStab |
default |
evolPix.cells_ID |
(optional) default |
evolStab.mw_size |
(optional) default |
evolStab.mw_step |
(optional) default |
evol.fixedScale |
(optional) default |
doFunc.valid |
default |
valid.mat.PFG.obs |
a |
doFunc.mapPFGvsHS |
default |
doFunc.mapPFG |
default |
mapPFGvsHS.stratum |
(optional) default |
binMap.method |
an |
binMap.method1.threshold |
default |
binMap.method2.cutoff |
default |
mapPFG.stratum_min |
(optional) default |
mapPFG.stratum_max |
(optional) default |
mapPFG.doBinary |
(optional) default |
opt.doPlot |
(optional) default |
opt.no_CPU |
(optional) default |
This function allows to obtain, for a specific FATE
simulation and a
specific parameter file within this simulation, up to eleven
preanalytical graphics.
For each PFG and each selected simulation year, raster maps are retrieved
from the results folders (ABUND_perPFG_perStrata
,
ABUND_perPFG_allStrata
, ABUND_REL_perPFG_allStrata
,
BIN_perPFG_perStrata
, BIN_perPFG_allStrata
, LIGHT
or
SOIL
) and unzipped. Informations extracted lead to the production of
the following graphics before the maps are compressed again :
the evolution of space occupancy of each plant functional
group through simulation time,
with space occupancy
representing the percentage of pixels within the mask of studied area
where the PFG is present
(see
POST_FATE.graphic_evolutionCoverage
)
the evolution of total abundance of each plant functional
group through simulation time,
with total abundance being the
sum over the whole studied area of the PFG abundances (FATE
arbitrary unit)
(see
POST_FATE.graphic_evolutionCoverage
)
the evolution of abundance of each Plant Functional Group
through simulation time, within 5 (or more) randomly selected pixels of
the studied area (FATE
arbitrary unit), as well as
light resources within each height stratum (1
: Low,
2
: Medium, 3
: High) and soil resources
(user-defined scale) if these modules were selected (see
POST_FATE.graphic_evolutionPixels
)
the evolution of total abundance (FATE
arbitrary unit) and evenness (between 0
and
1
) of each habitat through simulation time, with evenness
representing the uniformity of the species composition of the habitat
(similar to Shannon entropy) (see
POST_FATE.graphic_evolutionStability
)
the value of several statistics to evaluate the predictive
quality of the model for each plant functional group
(sensitivity
,
specificity
,
auc
,
TSS = sensitivity + specificity - 1
) (see
POST_FATE.graphic_validationStatistics
)
the comparison between each PFG habitat suitability map and
its simulated map of presence
(see
POST_FATE.graphic_mapPFGvsHS
)
the map of PFG richness within each pixel, representing the
sum of binary maps (see POST_FATE.graphic_mapPFG
)
the map of PFG relative cover, representing the sum of
relative abundance maps of all PFG
(potentially above a height threshold
defined by opt.stratum_min
) (see
POST_FATE.graphic_mapPFG
)
the map of light Community Weighted Mean
(potentially above
a height threshold defined by opt.stratum_min
) (see
POST_FATE.graphic_mapPFG
)
the map of soil Community Weighted Mean
(potentially above
a height threshold defined by opt.stratum_min
) (see
POST_FATE.graphic_mapPFG
)
The following POST_FATE_GRAPHIC_[...].pdf
files are created :
to visualize for each PFG the evolution of its occupation of the studied area through simulation time
to visualize for each PFG the evolution of its abundance within the whole studied area through simulation time
to visualize for each PFG the evolution of its abundance within each selected pixel through simulation time, as well as the evolution of light and soil resources
to visualize for each habitat the evolution of its total abundance and its evenness through simulation time
to assess the modeling quality of each PFG based on given observations within the studied area
to visualize the PFG presence within the studied area (probability and simulated occurrence)
to visualize the PFG cover within the studied area
to visualize the PFG richness within the studied area
to visualize the light CWM within the studied area
to visualize the soil CWM within the studied area
Three folders are created :
containing relative
abundance raster maps for each PFG across all strata (see
POST_FATE.relativeAbund
)
containing presence / absence
raster maps for each PFG across all strata (see
POST_FATE.binaryMaps
)
containing presence / absence
raster maps for each PFG for each stratum (see
POST_FATE.binaryMaps
)
Maya Guéguen
POST_FATE.temporalEvolution
,
POST_FATE.graphic_evolutionCoverage
,
POST_FATE.graphic_evolutionPixels
,
POST_FATE.graphic_evolutionStability
,
POST_FATE.relativeAbund
,
POST_FATE.binaryMaps
,
POST_FATE.graphic_validationStatistics
,
POST_FATE.graphic_mapPFGvsHS
,
POST_FATE.graphic_mapPFG
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.