2016-08-03 23 views
0

我做了install.packages("choroplethr"),然後是library(choroplethr)。我想找出如何做一個郵政編碼choropleth,所以我開始輸入RStudio, 「?choroplethr::zip ...」RStudio發現的唯一功能是zip_map。我去幫助文件,並看到以下文檔:R包choroplethr說使用zip_choroplethr而不是zip_map,但功能不可用

此功能從3.0版本開始已棄用。請 改爲使用?zip_choropleth。 choroplethr的最後一個版本,其中 此功能工作是2.1.1版本,這可以從 CRAN這裏下載: http://cran.r-project.org/web/packages/choroplethr/index.html

好吧,我想我會了解這個zip_choroplethr功能即可。

?choroplethr::zip_choroplethr 
# No documentation for ‘zip_choroplethr’ in specified packages and libraries: 
# you could try ‘??zip_choroplethr’ 

WUT。

回答

2

感謝您使用choroplethr。

zip_map確實已棄用。它使用散點圖,這不是將郵政編碼形象化的最佳方式,尤其是因爲它們太小。

在choroplethr中,郵政編碼choropleths由一個新的獨立包管理:choroplethrZip。您可以查看安裝說明和文檔here

由於地圖的大小,CRAN拒絕choroplethrZip,這就是爲什麼它在單獨的包和github上。

相關問題