species_plan | R Documentation |
Generate a drake plan that facilitates reproducible generation of species outputs.
species_plan( species, clum_classes, nvis_classes, host_path, pathways, include_abiotic_weight = TRUE, climate_suitability_path, exclude_bioclim_vars = NULL, include_ndvi = TRUE, aggregated_res = c(5000, 5000), make_interactive_maps = TRUE, processed_data_path, clum_path, nvis_path, ndvi_path, pop_density_path, airports_path, tourist_beds_path, airport_beta = log(0.5)/200, airport_tsi_beta = log(0.5)/10, port_data_path, port_weight_beta, fertiliser_data_path, nrm_path, containers_data_path, postcode_path, occurrence_path, infected_countries, cabi_path, use_gbif = FALSE, gbif_species, gbif_min_year = 1970, gbif_max_uncertainty = 20000, gbif_username, gbif_password, basemap_mode = c("osm", "boundaries"), minimum_probability_for_maps = 1e-05, manual_check_flagged_records = FALSE, wind_effect_width, leakage_tourists, establishment_tourists, leakage_returning, establishment_returning, leakage_torres, establishment_torres, leakage_mail, establishment_mail, leakage_vessels, establishment_vessels, leakage_fertiliser, establishment_fertiliser, leakage_machinery, establishment_machinery, leakage_containers, establishment_containers, leakage_nurserystock, establishment_nurserystock, leakage_food, establishment_food, leakage_goods, establishment_goods, leakage_northwind, establishment_northwind, leakage_pacificwind, establishment_pacificwind, leakage_nzwind, establishment_nzwind, overwrite = TRUE )
species |
The name of the species. This will be used for naming output files and folders. |
clum_classes |
An integer vector indicating which ACLUM classes are
considered host plants for |
nvis_classes |
An integer vector indicating which NVIS classes are
considered host plants for |
host_path |
Character. Optional file path to a raster dataset that
describes the distribution of host material for the species. The file must
be readable by GDAL. All cell values other than zero or NA will be
considered to be host material. Dataset will be projected and resampled as
necessary to match the spatial extent and resolution of analysis. If
|
pathways |
A character vector of invasion pathways that should be
included. Can be one or more of: |
include_abiotic_weight |
Logical. Should suitability be dependent on
climate? Considered TRUE if |
climate_suitability_path |
Optional file path to a raster describing
climatic suitability across the landscape. If provided, the raster must be
have the Australian Albers coordinate system (EPSG:3577), spatial
resolution of 1000 m, and must have xmin = -1888000, xmax = 2122000,
ymin =-4847000, ymax = -1010000. If not provided and
|
exclude_bioclim_vars |
Character vector of bioclim variables that
should not be used when fitting a range bag model (see
|
include_ndvi |
Logical. Should biotic suitability be dependent on NDVI? |
aggregated_res |
A numeric vector of 2 elements, indicating the desired resolution of aggregated establishment likelihood rasters, in metres. |
make_interactive_maps |
Logical. Should interactive html maps be generated? |
processed_data_path |
Path to a directory that will be used to store processed datasets. This will be created, recursively, if it does not exist. |
clum_path |
Path to the ACLUM raster. |
nvis_path |
Path to the NVIS raster. |
ndvi_path |
Path to the NDVI raster. |
pop_density_path |
Path to the population density raster. |
airports_path |
Path to the major airports vector dataset. |
tourist_beds_path |
Path to the tourist beds vector dataset. |
airport_beta |
Numeric. Parameter controlling the distribution of
international tourists passengers around international airport. Default is
|
airport_tsi_beta |
Numeric. Parameter controlling the distribution of
Torres Strait passengers around Cairns airport. Default is
|
port_data_path |
File path to the marine ports .csv file. |
port_weight_beta |
Numeric. Defines the decay rate of an exponential
model. In the context of pests entering via the vessel pathway, this
reflects the decrease in the relative likelihood of pest arrival at
locations distant from marine ports. For example,
|
fertiliser_data_path |
File path to a csv file containing information about fertiliser usage by NRM. |
nrm_path |
File path to a polygon shapefile of NRMs (natural resource management areas). |
containers_data_path |
File path to the dataset giving the distribution of containers by postcode. |
postcode_path |
File path to postal areas shapefile. |
occurrence_path |
Path to a .csv file containing occurrence data. Must
include columns |
infected_countries |
A character vector of countries within which the
|
cabi_path |
Path to a .csv file downloaded from CABI, indicating the
countries within which the |
use_gbif |
Logical. Should species occurrence records be sourced from
GBIF? Ignored if |
gbif_species |
Character vector. Taxon names to use when querying GBIF.
Ignored if |
gbif_min_year |
Integer. The minimum year ( |
gbif_max_uncertainty |
Numeric. The maximum permissable coordinate
uncertainty for GBIF records. Ignored if |
gbif_username |
GBIF username to use for querying GBIF's occurrence download API endpoint. If missing, the less efficient "search" endpoint is used. Register at http://gbif.org. |
gbif_password |
GBIF password to use for querying GBIF's occurrence download API endpoint. If missing, the less efficient "search" endpoint is used. Register at http://gbif.org. |
basemap_mode |
Type of basemap for static maps. Either |
minimum_probability_for_maps |
Numeric. A value between 0 and 1,
defining the minimum establishment probability to be displayed on plotted
maps. Values below this threshold will be excluded. Default is |
manual_check_flagged_records |
Logical. Should an interactive map be
used for manually checking flagged occurrence records? If |
wind_effect_width |
Numeric. For wind pathways, the distance (in metres)
inland from the coastline, over which wind-based arrival applies. E.g. if
pests are expected to be carried by wind up to 50 km inland from the coast,
use |
leakage_tourists, leakage_returning, leakage_torres, leakage_mail, leakage_vessels, leakage_fertiliser, leakage_machinery, leakage_containers, leakage_nurserystock, leakage_food, leakage_goods, leakage_northwind, leakage_pacificwind, leakage_nzwind |
Numeric vector with length = 2, giving the range (bounds of 95% CI) of the number of leakage events per year for the pathway. |
establishment_tourists, establishment_returning, establishment_torres, establishment_mail, establishment_vessels, establishment_fertiliser, establishment_machinery, establishment_containers, establishment_nurserystock, establishment_food, establishment_goods, establishment_northwind, establishment_pacificwind, establishment_nzwind |
Numeric vector with length = 2, giving the bounds of the 95% CI of the rate of survival & establishment to end of pathway, for leakage events on the pathway. |
overwrite |
Logical. Should the code executed by the resulting plan be
allowed to overwrite existing raster files? Default is |
To simplify reproducibility, edmaps
provides an
Excel interface for specifying species parameters relevant to
estimating establishment likelihood. An example spreadsheet is
bundled with the package, available at the path given by
system.file('extdata/parameters.xlsx', package='edmaps')
. The
spreadsheet has two sheets, the first specifying "global" parameters
that will apply to all species (e.g. file paths to rasters that will),
be used regardless of species identity and the second specifying
parameters that can vary by species. In the second sheet, each row
corresponds to a separate species. Tooltips and data validation
guide the user with respect to expected/allowable data.
excel_to_plan()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.