plot_data_pull: Pull indicators from desired data sets for target ESG

View source: R/plot_data_pull.R

plot_data_pullR Documentation

Pull indicators from desired data sets for target ESG

Description

Pull indicators from desired data sets for target ESG

Usage

plot_data_pull(
  user = "Anna",
  target_ESG = "Semiarid_Warm_SandyUplands_LoamyUplands",
  data_sources = c("BadgerWash", "CRCMonitoring", "IM_NCPN", "LMF", "NRI", "Parashant",
    "AIM", "VanScoyocThesis"),
  indicators = c("AH_C3PerenGrassCover", "AH_C4PerenGrassCover",
    "AH_IntroducedPerenGrassCover", "AH_NativePerenForbCover",
    "AH_IntroducedPerenForbCover", "AH_NativeAnnGrassCover",
    "AH_IntroducedAnnGrassCover", "AH_NativeAnnForbCover", "AH_IntroducedAnnForbCover",
    "AH_ArtemisiaTridentataCover", "BareSoilCover", "CP_percent_100to200",
    "CP_percent_200plus", "FH_LichenCover", "FH_MossCover"),
  ann_grass_by_spp = FALSE,
  ann_forb_by_spp = FALSE,
  per_grass_by_spp = FALSE,
  per_forb_by_spp = FALSE,
  succulent_by_spp = FALSE,
  shrub_by_spp = TRUE,
  subshrub_by_spp = TRUE,
  tree_by_spp = TRUE,
  opuntia_combined = TRUE,
  impute_gap_type = NULL,
  impute_sources = NULL
)

Arguments

user

Character. User name to generate input data file paths. See data_file_paths for input options.

target_ESG

Character. Ecological Site Group to pull plot data for. Follow the names used in the ESG raster released with Travis's 2021 manuscript.

data_sources

Character or vector of characters indicating which projects in PlotNet, AIM, and NRI to use data from. Options include any project in PlotNet but recommended to select from the following: "BadgerWash", "CRCMonitoring", "IM_NCPN", "LMF", "NRI", "Parashant", "TerrADat", "VanScoyocThesis"

indicators

Character vector of indicators to return data from. Can include anything calculated in PlotNet.

ann_grass_by_spp

Logical. Include all annual grasses by species?

ann_forb_by_spp

Logical. Include all annual forbs by species?

per_grass_by_spp

Logical. Include all perennial grasses by species?

per_forb_by_spp

Logical. Include all perennial forbs by species?

succulent_by_spp

Logical. Include all succulents by species? If TRUE, opuntia_combined should be FALSE

shrub_by_spp

Logical. Include all shrubs by species?

subshrub_by_spp

Logical. Include all sub-shrubs by species?

tree_by_spp

Logical. Include all trees by species?

opuntia_combined

Logical. Include combined cover of genus Opuntia? If TRUE, succulent_by_spp should be FALSE

impute_gap_type

Character vector. Gap type to predict. Supported options are "CA_percent_100plus" (% cover annual & perennial gaps >100 cm) and "CA_percent_200plus" (% cover annual & perennial gaps >200 cm). Set to NULL if no imputation is desired.

impute_sources

Character vector. Optional. Only impute missing data for specific data source(s). Set to NULL if not imputation is desired.

Value

Wide format data frame containing indicators for the target ESG


annack84/STMdevelopment documentation built on April 12, 2024, 6:46 p.m.