Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/POST_FATE.graphic_evolutionPixels.R
This script is designed to produce one graphical representation
for a FATE simulation : the evolution through time of the
abundance of each PFG for 5 (or more) randomly selected cells of the studied
area.
1 2 3 4 5 6 7 | POST_FATE.graphic_evolutionPixels(
name.simulation,
file.simulParam = NULL,
opt.cells_ID = NULL,
opt.fixedScale = TRUE,
opt.doPlot = TRUE
)
|
name.simulation |
a |
file.simulParam |
default |
opt.cells_ID |
(optional) default |
opt.fixedScale |
(optional) default |
opt.doPlot |
(optional) default |
This function allows to obtain, for a specific FATE simulation and
a specific parameter file within this simulation, one preanalytical graphic :
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)
if light was activated (see
PRE_FATE.params_globalParameters),
evolution of
light resources within the selected pixels is also represented
(1: Low, 2: Medium, 3: High)
if soil was activated (see
PRE_FATE.params_globalParameters),
evolution of
soil resources within the selected pixels is also represented
(user-defined scale)
It requires that the POST_FATE.temporalEvolution
function has been run and that the file
POST_FATE_TABLE_PIXEL_evolution_abundance.csv exists (as well as the
POST_FATE_TABLE_PIXEL_evolution_light.csv and
POST_FATE_TABLE_PIXEL_evolution_soil.csv files if those modules were
activated).
A list containing one data.frame object with the
following columns, and one ggplot2 object :
TYPEconcerned information (either 'light',
'abundance' or 'soil')
GROUPconcerned entity (either
'STRATUM_[...]', PFG name or 'soil')
ID.pixelnumber of the concerned pixel
HABhabitat of the concerned pixel
YEARconcerned simulation year
valueconcerned value extracted from .csv files
produced by POST_FATE.temporalEvolution
ggplot2 object, representing the evolution of each PFG
abundance, and light and soil resources if those modules were
activated
One POST_FATE_TABLE_PIXEL_evolution_pixels_[...].csv file is created :
always, containing the data.frame detailed
above
One POST_FATE_[...].pdf file is created :
to visualize for each PFG the evolution of its abundance within each selected pixel through simulation time
Maya Guéguen
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
POST_FATE.graphic_evolutionPixels(name.simulation = "FATE_simulation"
, file.simulParam = "Simul_parameters_V1.txt")
POST_FATE.graphic_evolutionPixels(name.simulation = "FATE_simulation"
, file.simulParam = "Simul_parameters_V1.txt"
, opt.fixedScale = FALSE)
## End(Not run)
## ----------------------------------------------------------------------------------------- ##
## Load example data
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.