您如何使用googleway
包在 R 中的 Google 地图中对标记进行聚类?
我尝试使用选项 add_markers("cluster = TRUE ") 但没有成功
这是一个可重现的示例和我得到的地图:
library(googleway)
key <- "my_google_map_API"
df <- data.frame(
lat = c(45.77740319999999,45.77740319999999,46.77740319999999,46.77740319999999),
lon = c(4.855214400000023,4.955214400000023,4.855214400000023,4.955214400000023))
google_map(key = key, height = 600, search_box = T) %>%
add_markers(data = df,cluster = TRUE)
非常感谢