Read the data
df <- read.csv('worldcities.csv')
Select the top 50 biggest cities by population
df2 <- head(df[order(df$population, decreasing = TRUE),],50)
You can download the data from ‘https://simplemaps.com/data/world-cities’. Last update:2019
library(leaflet)
mymap <- df2 %>% leaflet() %>% addTiles() %>% addMarkers(label = df2$city) %>% addCircles(radius = sqrt(df2$population)*100, weight = 1)
mymap