Choropleth Maps in R - TIGER Shapefile issue

前端 未结 2 1468
一个人的身影
一个人的身影 2021-01-14 02:13

Have a Question on Mapping with R, specifically around the choropleth maps in R.

I have a dataset of ZIP codes assigned to an are and some associated data (dataset i

2条回答
  •  灰色年华
    2021-01-14 02:53

    I would advise the following.

    • Use readOGR from the rgdal package rather than readShapeSpatial.
    • Consider using ggplot2 for good-looking maps - many of the examples use this.
    • Refer to one of the existing examples of creating a choropleth such as this one to get an overview.
    • Start with a simple choropleth and gradually add your own data; don't try and get it all right at once.
    • If you need more help, create a reproducible example with a SMALL fake dataset and with links to the shapefiles in question. The idea is that you make it easy to help us help you rather than discourage us by not supplying code and data in your question.

提交回复
热议问题