# Load packages ---------------------------------------
library(tidyverse)
library(sf) # spatial data frames
library(maps) # ready-made outlines
library(rgbif) # species records from GBIF
library(plotly) # interactive plots
# One download per snapshot year ----------------------
slf_2018 <- occ_data(scientificName = "Lycorma delicatula", country = "US",
hasCoordinate = TRUE, year = 2018, limit = 1500)$data
slf_2021 <- occ_data(scientificName = "Lycorma delicatula", country = "US",
hasCoordinate = TRUE, year = 2021, limit = 1500)$data
slf_2025 <- occ_data(scientificName = "Lycorma delicatula", country = "US",
hasCoordinate = TRUE, year = 2025, limit = 1500)$data







