library(ggplot2)
library(data.table)
library(magrittr)
sf
for interactive mapsWe provide the option of how to use sf
class object to
create interactive maps. It requres the leaflet
package.
<- csmaps::nor_county_map_b2024_default_sf
pd_county ::leaflet(
leaflet
pd_county,options = leaflet::leafletOptions(preferCanvas = F)
%>%
) ::addProviderTiles(leaflet::providers$Esri.WorldGrayCanvas) %>%
leaflet::addPolygons(
leafletweight = 0.3,
opacity = 1,
color = "black",
fillColor = "white",
fillOpacity = 0.9
)