jasonratcliff / thesis

Source code and data for MSc thesis
https://scholarworks.uni.edu/etd/1108
Other
0 stars 0 forks source link

P. didymocarpa subsp. lyrata #18

Open jasonratcliff opened 4 years ago

jasonratcliff commented 4 years ago

Lehmhi County, ID

jasonratcliff commented 3 years ago
jasonratcliff commented 3 years ago

To assess across specimens, select variables with lyrate observations and filter vouchers before base mapping.

library(dplyr)  # >= v1.0.4

lyrate_vouchers <-
  ThesisPackage::herbarium_specimens %>%
  select_if(.tbl = ., ~ TRUE %in% grepl("[Ll]yrate", .x)) %>%
  bind_cols(
    select(.data = ThesisPackage::herbarium_specimens,
      prior_id, Taxon_a_posteriori, Latitude, Longitude,
      Collector, Collection_Number, State, County), .
  ) %>%
  filter(
    if_any(
      .cols = matches("Petiole|leaf"),
      .fns = ~ grepl("[Ll]yrate", .x)
    )
  )

ThesisPackage::build_map(
  specimen_tbl = lyrate_vouchers,
  id_column = "Taxon_a_posteriori",
  legend_title = "Reviewed Annotations",
  map_base = "base"
)