Skip to content

Rendering a map of all zip codes (ZCTAs)

2 messages · arilamstein at gmail.com, Roger Bivand

#
On Tue, 18 Feb 2014, arilamstein at gmail.com wrote:

            
Your "blog" points to github - the package is on CRAN, point to that; 
install.github() tries to install from source, and most users need binary 
installs; it is also not >= GPL-2. Note that the boundary data in the maps 
package do not have clear pedigrees, and the zipcode package only ships 
points (so why would you be surprised if only points are displayed?) - 
they are also without clear authority.
You can choose to use ggplot2 and fortify, but you go from fish to fish 
soup without the possibility of getting the fish back (in reasonable 
time, fish paste best option). However, converting all the coordinates to 
data.frame format is time-consuming, and creates very many copies of 
attrribute data.
Firstly, do study thematic cartography. You'll find that many of the 30K 
geometries are invisible on most available screen resolutions, so that 
visualising more than a small subset isn't very sensible anyway (single 
pixels belonging to different class intervals from their neighbours are 
very hard to pick out, even with transparent borders). So choosing the 
subset of your imported SpatialPolygonsDataFrame object you need and only 
fortifying that subset will make things more tractable.

You should drop the idea of shipping the US Census shapefile of ZCTA, CRAN 
and its mirrors do not need to duplicate files that are available online 
elsewhere; if the boundaries were on a WFS (Web Feature Server), it might 
be possible to download just the subset needed.

Roger