我无法安装Choroplethr包。
我已经安装了'devtools‘包和GitHub代码库
install_github('arilamstein/choroplethrZip@v1.5.0'). 当我运行zip_choropleth()时,我得到错误:‘找不到函数"zip_choropleth"’。
我尝试安装'choroplethrZip‘包,得到错误:’choroplethrZip‘is not available (for R version3.5.0)’。
我不知道还能做什么,或者我的R版本根本不能使用它。
我们非常感谢您的任何想法。提前谢谢。
install.packages('devtools')
library('devtools')
install.packages('choroplethrZip')
library('choroplethrZip')
install_github('arilamstein/choroplethrZip@v1.5.0')
zip_choropleth(df,..)Error:...package‘choroplethrZip’不可用(适用于R版本3.5.0)
发布于 2019-06-22 02:56:08
看起来您已经安装了devtools包。所以这可能是你需要的代码:
# install choroplethrZip
library(devtools)
install_github('arilamstein/choroplethrZip@v1.5.0')
# load choroplethrZip
library(choroplethrZip)
# create an example map
data(df_pop_zip)
zip_choropleth(df_pop_zip, state_zoom = "new york")

关键点是:choroplethrZip不在CRAN上。因此,键入install.packages("choroplethrZip")永远不会起作用。
https://stackoverflow.com/questions/56707358
复制相似问题