GDRarity.Rmd
GDRarity
Vignette Info
This vignette provides an introduction to the usage of GDRarity.
We will:
- Find the best restriction and accompanying method to explain variation in flowering phenology for 70 British plant species.
- Analyse the rarity of species using this restriction.
Import Data
species_70_path <- system.file("extdata", "species_70.csv", package = "GDRarity")
abundance_70_path <- system.file("extdata", "abundance_70.csv", package = "GDRarity")
species_70 <- read.csv(species_70_path)
abundance_70 <- read.csv(abundance_70_path)
Run All Methods on All 63 Restrictions of GDR
Only running taxonomic frequency as a measure of regional geographic rarity due to computational requirements associated with calculating range sizes using GBIF.
all_combinations <- restriction_performance_pipeline(species_df = species_70, abundance_df = abundance_70, trait_cols = c("SLA", "seed_mass", "canopy_height"), geo_methods = "taxonomic", response_vars = "flowering_duration")
Best Restriction for Flowering Phenology
The best restriction to explain variation in flowering phenology in the 70 British species is GLFRPR, which explains up to 23.2% of the variation in flowering window and incorporates:
- Local Geographic Rarity (GL)
-
Regional Functional Rarity (FR)
- Regional Phylogenetic Rarity (PR)
Incorporating Additional Dimensions
Re-run Methods with Habitat Specificity
When using user-specified rarity dimensions, you must specify all thresholds and directions.
# Must specify all thresholds and directions if using user-specified rarity dimension(s)
hs_combinations <- restriction_performance_pipeline(species_df = species_70_hs, abundance_df = abundance_70, additional_dimensions = "habitat_specificity", trait_cols = c("SLA", "seed_mass", "canopy_height"), geo_methods = "taxonomic", response_vars = "flowering_duration", threshold_sets = list(list(GR = 0.15, GL = 0.15, FR = 0.75, FL = 0.75, PR = 0.75, PL = 0.75, H = 0.85)), direction_sets = list(list(GR = "low", GL = "low", FR = "high", FL = "high", PR = "high", PL = "high", H = "high")))
Best Restriction for Flowering Phenology Incorporating Habitat Specificity
The best restriction to explain variation in flowering phenology in the 70 British species incorporating a user-specified axis of habitat specificity is GLFRLPRH, which explains up to 78.6% of the variation in flowering window and incorporates:
- Local Geographic Rarity (GL)
-
Regional Functional Rarity (FR)
- Local Functional Rarity (FL)
-
Regional Phylogenetic Rarity (PR)
- Habitat Specificity (H)