Introduction

This document processes Chicago Botanic Garden seed bank accession data, performs spatial analyses, and appends land landownership polygon data to the accession database if seed has been collected there. The goal is to create land ownership data for all collections.

Load Packages

library(dplyr)
## 
## Attaching package: 'dplyr'
## The following objects are masked from 'package:stats':
## 
##     filter, lag
## The following objects are masked from 'package:base':
## 
##     intersect, setdiff, setequal, union
library(openxlsx)
## Warning: package 'openxlsx' was built under R version 4.1.2
library(sf)
## Warning: package 'sf' was built under R version 4.1.2
## Linking to GEOS 3.9.1, GDAL 3.2.1, PROJ 7.2.1; sf_use_s2() is TRUE
library(terra)
## terra 1.5.12
## 
## Attaching package: 'terra'
## The following object is masked from 'package:dplyr':
## 
##     src
library(ggplot2)
## Warning: package 'ggplot2' was built under R version 4.1.3
## 
## Attaching package: 'ggplot2'
## The following object is masked from 'package:terra':
## 
##     arrow
#install.packages("tidyterra")
#library(tidyterra) # cannot get to install!!
library(s2)
## Warning: package 's2' was built under R version 4.1.3
library(ggspatial)
library(tidyverse)
## -- Attaching packages --------------------------------------- tidyverse 1.3.1 --
## v tibble  3.1.4     v purrr   0.3.4
## v tidyr   1.1.4     v stringr 1.4.0
## v readr   2.1.1     v forcats 0.5.1
## Warning: package 'tidyr' was built under R version 4.1.2
## Warning: package 'readr' was built under R version 4.1.2
## -- Conflicts ------------------------------------------ tidyverse_conflicts() --
## x ggplot2::arrow()  masks terra::arrow()
## x tidyr::extract()  masks terra::extract()
## x dplyr::filter()   masks stats::filter()
## x dplyr::lag()      masks stats::lag()
## x purrr::simplify() masks terra::simplify()
## x terra::src()      masks dplyr::src()
#install.packages("tigris")
library(tigris)
## To enable caching of data, set `options(tigris_use_cache = TRUE)`
## in your R script or .Rprofile.
options(tigris_use_cache = TRUE)

Including Plots

You can also embed plots, for example:

Note that the echo = FALSE parameter was added to the code chunk to prevent printing of the R code that generated the plot.