Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/POST_FATE.binaryMaps.R
This script is designed to produce raster maps of PFG presence 
/ absence for one (or several) specific FATE simulation year.
| 1 2 3 4 5 6 7 8 9 | POST_FATE.binaryMaps(
  name.simulation,
  file.simulParam = NULL,
  years,
  method,
  method1.threshold = 0.05,
  method2.cutoff = NULL,
  opt.no_CPU = 1
)
 | 
| name.simulation | a  | 
| file.simulParam | default  | 
| years | an  | 
| method | an  | 
| method1.threshold | default  | 
| method2.cutoff | default  | 
| opt.no_CPU | (optional) default  | 
This function allows to obtain, for a specific FATE simulation and 
a specific parameter file within this simulation, raster maps of PFG 
presence / absence. 
 
For each PFG and each selected simulation year, raster maps are retrieved 
from the results folder ABUND_REL_perPFG_allStrata and lead to the 
production of as many maps as those found :
1 fixed thresholdrelative abundance maps are transformed 
into binary maps according to the threshold given by 
method1.threshold : 
abund\_rel_{\text{ PFG}_i} > \text{method1.threshold} \;\; \Leftrightarrow \;\; 1
2 optimizing TSSrelative abundance maps are transformed 
into binary maps according to the cutoff found 
with the POST_FATE.graphic_validationStatistics function : 
abund\_rel_{\text{ PFG}_i} > \text{method2.cutoff}_{\text{ PFG}_i} \;\; \Leftrightarrow \;\; 1
Binary maps per stratum are obtained by multiplying raster maps from 
ABUND_perPFG_perStrata folder by corresponding raster maps from 
BIN_perPFG_allStrata folder.
It requires that the POST_FATE.relativeAbund 
function has been run and that the folder ABUND_REL_perPFG_allStrata 
exists. 
 If method = 2, it requires that the 
POST_FATE.graphic_validationStatistics function has been run. 
 
These binary raster files can then be used by other 
functions :
 to produce graphics of PFG modelled presence vs
PFG Habitat Suitability maps 
 (see 
POST_FATE.graphic_mapPFGvsHS)
Two folders are created :
containing presence / absence raster maps for each PFG across all strata
containing presence / absence raster maps for each PFG for each stratum
Maya Guéguen
POST_FATE.relativeAbund,
POST_FATE.graphic_validationStatistics
.getCutoff,
POST_FATE.graphic_mapPFGvsHS
| 1 2 3 4 |                                                         
## ----------------------------------------------------------------------------------------- ##
## Load example data
                                                                         
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.