From the course: Creating Maps with R

Unlock the full course today

Join today to access over 24,200 courses taught by industry experts.

Challenge: Add pop-up labels to a map of German cities

Challenge: Add pop-up labels to a map of German cities

From the course: Creating Maps with R

Challenge: Add pop-up labels to a map of German cities

- [Instructor] For this challenge, I would like you to use leaflet to create a geo scatter plot showing the five largest cities in Germany. I'd like you to fill the capital city as gold and all other cities as purple. I'd also like you to add a pop-up to each of the circle markers, such that it shows both the city and the population. Please ensure that the population number is formatted as shown in this slide. And finally, I'd like you to add a white background to the map using the leaflet.extras package.

Contents