Image by Free-Photos from Pixabay
library(tidyverse)
library(rgdal)
library(spdep)
library(leaflet)
## make a lake icon
lakeIcons <- iconList(
lake = makeIcon("lake.png", "lake2x.png", 40, 40)
)
## Load data
lakes <- read.csv("ice_free_predictions.csv") %>% filter(Pour_long < -59) %>% filter(Pour_long > -95)
## Plot lakes
leaflet(data=lakes) %>% addTiles() %>%
addMarkers(~Pour_long, ~Pour_lat, popup = ~as.character(rcp85), label = ~as.character(rcp85))