R
状況 すでにleafletでmという変数にデータを入れている状況で、そのmをhtmlファイルではなく、pngファイルとして、画像として出力したい状況。 エラー PhantomJS not found. You can install it with webshot::install_phantomjs(). If it is installed, ple…
経緯 Rのleafletパッケージを使おうと思い、 library(leaflet) shape %>% leaflet() %>% addTiles() %>% addProviderTiles(providers$CartoDB.Positron) %>% addPolygons(fillOpacity = 0.5,weight = 1,fillColor = "lightblue") として上記のコードを実行す…
状況 住所から経度緯度を求めたい。いわゆるジオコーディングを行いたい。今回はGoogle APIとRのライブラリであるggmapを用いてジオコーディングを行った。 使用言語 R 3.6.1 発生した問題点 hoge %>% mutate(緯度 = geocode(住所)$lat, 経度 = geocode(住所…