r – How can I do yearly comparison of environmental factors at different species occurrence sites?

I currently have occurrence coordinate data concerning a species. The occurrence dates start around 1902 and continue about each year until 2023. I want to compare these coordinates each year to different changes in environmental factors such as precipitation and minimum temperature. I am trying to find resources that could help me get started with this. I specifically want to analyze the potential correlation of where the occurrences are found with possible changes in the environmental factors. The occurrence data is from GBIF. Any recommendations would be appreciated.

I tried creating an SDM using worldclim_global. This those did not take into account the change overtime. Instead, it used each occurrence coordinate as happening at the same period of time. While I am interested in the correlation of time and movement.

Read more here: Source link