I have a dataset of 4 rows and a few columns which are country, location, hits, lat, lon. Reproducible is:
structure(list(country = c("France", "France", "France", "France")
, location("Ile-de-France, Paris", "Ile-de-France, Villebon-sur-yvette", "Nord-Pas-de-Calais, Hérin", "Nord-Pas-de-Calais, Lille")
, Hits(1, 1, 3, 5)
, lat = c(46.227638, 46.227638, 46.227638, 46.227638)
, Ion = c(-2.213749, 2.213749, 2.213749, 2.213749)
)
, .Names = c("country", "location", "Hits", "lat", "Ion")
, class = "data.frame")
I want to use this in popup and show all the location and hits as 4 seperate lines.
current code i am using is:
m <- leaflet() %>%
addTiles() %>% # Add default OpenStreetMap map tiles
addCircles(lng=area$longitude, lat=area$latitude, popup=paste("Country:", area$Country, "<br>"
, "Location:", area$Location, "-", area$Hits, "<br>"))
If u have questions feel free to ask.