leaflet으로지도에 플롯

3338 단어 Rleaflet비망록
library(jsonlite)
library(leaflet)

# https://www.javadrive.jp/google-maps-javascript/data/data/pref.json
j <- fromJSON("pref.json")

l <- leaflet() %>% addTiles() %>%
  addPolylines(lng = j$marker$lng, lat = j$marker$lat, color = "#0095d9") %>%
  addCircleMarkers(lng = j$marker$lng, lat = j$marker$lat, popup = j$marker$addr, radius = 2, color = "#0f2350")
l 

좋은 웹페이지 즐겨찾기