admin管理员组文章数量:1333622
I'm working on a project in which I'm trying to make an interactive map with leaflet. I can't figure out how to have multiple colors for my circle markers. I've got my "closed" group on the map but want to add two more categories of markers.
library(leaflet)
leaflet() %>%
addTiles() %>%
setView(lng = -155.66, lat = 19.89, zoom = 5) %>%
addCircleMarkers(data = closed, color = "green")
and this is the first category I actually managed to get in lng -156.60, -156.87, -159.51, -159.53
lat 20.900, 21.140, 21.973, 22.120
and this is what I want to put in but in a different color lng -155.6, -155.5, -156.9 lat 19.2, 19.2, 20.9
I've tried so many different ways of trying to combine my other data group, but nothing is running.
本文标签: rHow to make multiple groups of circle markers with different colors for each groupStack Overflow
版权声明:本文标题:r - How to make multiple groups of circle markers with different colors for each group? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742349055a2458113.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论