I'm new to R. I've just made a basic interactive choropleth map using the leaflet package in R:
leaflet() %>%
addProviderTiles("CartoDB.Positron") %>%
setView(-2, 55, zoom = 5) %>%
addPolygons(data = shapes_funding_merge ,
fillColor = ~pal(shapes_funding_merge$PerPerson),
fillOpacity = 0.7,
weight = 0.2,
smoothFactor = 0.2,
popup = ~popup2) %>%
addLegend(pal = pal,
values = shapes_funding_merge$PerPerson,
position = "bottomright",
title = "Per-head funding (£)")
I want to make this embeddable on a web page. Can I create an embed code that I could send to someone else to embed the leaflet map on their web page?
I hope this isn't a silly question. I've read some other threads but can't seem to find what I think I need.
Any help would be very much appreciated.
Thanks