Manipulating and mapping US Census data in R using the acs, tigris and leaflet packages

Census data the hard way Plotting census data with ggplot2 Interactive plotting with the leaflet package Options 1: Convert the data.frame back to a SpatialPolygonsDataFrame Options 2: Make use of the existing SpatialPolygonsDataFrame Census data the easy(er) way 1) Set up the packages 2) Get the spatial data (tigris) 3) Get the tabular data (acs) […]

Continue reading →

It is incredibly easy to create a Leaflet map using QGIS

The qgis2leaf plugin for QGIS makes it incredibly easy to create a basic, fully-functional Leaflet.js map using QGIS with no HTML/JavaScript/CSS programming. The plugin even allows you to use a variety of interesting basemaps including Stamen Watercolor (see our post on the watercolor map). To create a Leaflet map using the plugin follow these simple […]

Continue reading →

Stamen Design’s watercolor basemap makes mapping more fun

For a recent project I was conducting some fairly dry quality assurance/quality control. In particular, I was comparing whether the population-weighted centroids of ZIP codes (ZCTA, to be specific) we computed in PostGIS matched those computed using QGIS. Given that I was creating temporary, internal maps, to make things more fun, I used the OpenLayers […]

Continue reading →