Dorris Scott
3/28/2018
What is leaflet?
Install the leaflet package and load it.
install.packages("leaflet")
library(leaflet)
If you are getting error messages about packages missing then:
install.packages("leaflet", dependencies = TRUE)
library(leaflet)
Adding latitude and longitude information to the tweets(using the rtweet package)
fm <- lat_lng(FMTweets)
Using leaflet
leaflet(fm) %>%
addTiles() %>%
addCircles(lng = ~lng, lat = ~lat, popup = fm$text, weight = 8, radius = 40, color = "blue", stroke =
TRUE, fillOpacity = 0.8)
What issue do you see with this map?
It's your turn!