Missing points in leaflet is usually caused by NA data, where leaflet doesn't plot anything after the row with the NA in it.thecounted[rowSums(is.na(thecounted)) > 0, ]# uid armed name slug age gender race date state classification large lat long hasimage# 738 738 Firearm Jason Hale jason-hale-738 29 M W 2015/8/19 WA Gunshot FALSE NA NA FALSE删除这个家伙,你在笑leaflet(data = thecounted[rowSums(is.na(thecounted)) == 0, ]) %>%addTiles() %>%addCircleMarkers(lat = ~lat, lng = ~long, stroke = FALSE, color = ~pal(armed), fillOpacity = ifelse(thecounted$armed=="No",0.75,0.35), popup = ~name) 这篇关于传单标记在某些情况下不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-02 00:35