3 Load data and packages

This section is to load the packages and extract the data.

3.1 Install packages

Here you will need the following packages:

  • ggplot
  • sf
  • data.table
  • cowplot
  • rnaturalearth
  • dplyr
  • ggspatial
  • gganimate
  • png
  • leaflet
  • rnaturalearthdata with devtools::install_github("ropensci/rnaturalearthdata")

To install packages: use install.packages("name of package")

3.2 Load the data

Check if we have the right period from 2011 to 2021

## [1] 2005
## [1] 2021

Check the number of species and the type of species

## [1] 10
##  [1] "Fratercula arctica"      "Bubo scandiacus"         "Clangula hyemalis"       "Rissa tridactyla"       
##  [5] "Euphagus carolinus"      "Hesperiphona vespertina" "Oceanodroma leucorhoa"   "Podiceps auritus"       
##  [9] "Chaetura pelagica"       "Emberiza aureola"