View source: R/additionalStats.R
additionalStats | R Documentation |
This function generates graphs showing the changes in range size and position between the data a species distribution model was trained on and future or past projections of species ranges.
additionalStats(
result_dir,
time_periods,
scenarios,
dispersal = FALSE,
contiguous = FALSE,
dispersaldata = NA,
ncores = 1
)
result_dir |
the directory where the ensembled and binary maps are placed in
addition to the "Results.csv" file. If |
time_periods |
a vector of the years in which the projection will occur, with the first element as the year the model will be trained on (usually the current data).If no precise years are available (e.g., using data from the Last Glacial Maximum), order time periods from current to least current and give character strings for the years (e.g., "LGM"). |
scenarios |
a vector of character strings detailing the different climate models used in the forecasted/hindcasted species distribution models. In no projection is needed, set to NA (defualt). |
dispersal |
(logical |
contiguous |
(logical |
dispersaldata |
A dataframe or the full file path to a .csv file with two columns:
|
ncores |
the number of computer cores to parallelize the background point generation on. Default is 1; Using one fewer core than the computer has is usually optimal. |
NOTE: this function is dependent on the outputs generated by the projectSuit
function, in particular the "Results.csv" file, which includes information on
changes in range size and position across the projected time periods and scenarios.
creates .pdf files of graphs showing changes in range size and distribution across multiple time periods and scenarios:
The overall modelled range size across all time periods and scenarios.
The percent change from the current range size.
Average range size for each year given multiple climate scenarios.
(If dispersal = TRUE
) the difference in range size between dispersal constrained
and non-dispersal constrained species ranges.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.