ggplot2
Add leaflet to R-markdown
Using the R-markdown document you have built, add a new
code chunk to output a map using leaflet
.
- connect to the BeeLab database, through a connection we
have used in prior labs.
- Get the latitude and longitude coordinates from the
sites
table in the BeeLab database.
- plot the sites as circles on the basemap you choose, using
the
addCircleMarkers
function.