everyone. This is my first post. I am making a map of Ecuador showing the number of coronavirus confirmed cases by Province. This is the data I prepared. It has the province names and cases as for today. It has some NAs because not all provinces have confirmed cases. covid19_confirmed_today
When I map the data. Everything looks, but when rolling over the bubbles, they do not show the correct name of the province. Only for the first three provinces which do not have NAs. I tried changing the NAs into zeros, but then small bubbles appear for the provinces which have zero confirmed cases. I don't want any bubbles for provinces that do not have confirmed cases.
covid19_confirmed_today_map <- covid19_confirmed_today %>%
tm_shape() + tm_polygons(col = "skyblue", alpha = 0.2) +
tm_bubbles(size = "Casos", col = "red", alpha = 0.6, border.lwd = NA)
covid19_confirmed_today_map <- tmap_leaflet(covid19_confirmed_today_map)
covid19_confirmed_today_map %>% removeLayersControl() %>%
setView(lng = -78.50374, lat = -1.289527, zoom = 7) %>% fitBounds(-80.8, -4.2, -76.5, 0.8)
Here, where it say "Carchi", it should say "Chimborazo". It says "Carchi" because that't the first province with NA. Whenerever there is a province with NA, it jumps to the next province and adds the name to that province (without NA) to the previous province (the one that had NA). Thank you very much for any help give.