Ari Lamstein

Interactive Scatterplots of Census Data Using ggvis

Today I finished two projects that had been on my mind for a while: Try out ggvis, the interactive successor to ggplot2 Create interactive scatterplots of census data You can see the resulting shiny app here. The app lets you create a scatterplot of any pair of demographic variables that ship with the choroplethr package. When you roll over […]

How to Change the Reference Map in Choroplethr

Last week I released an update to choroplethr that lets you combine choropleth maps with reference maps. Since that post many people have asked if it’s possible to change the reference map that choroplethr uses. The answer is yes, but it requires some code. Here is the same choropleth (New York City ZIP Code Income) with three […]

Free R Help: October Edition

Last Month I offered 10 slots of Free R Help and the response was overwhelming. About 100 people requested slots, which was much more than I expected. Many of the people who I helped had taken online R courses such as the Coursera Data Science Specialization, but were struggling with applying what they learned to their own […]

Combining Choropleth Maps and Reference Maps in R

Recent updates to my mapping packages now make it easy to combine choropleth maps and reference maps in R. All you have to do is pass the parameter reference_map = TRUE to the existing functions. This should “just work”, regardless of which region you zoom in on or what data you display. The following table shows the affected functions and their […]

User Question: How to Add a State Border to a Zip Code Map?

A user recently asked me how to add a state outline to a Zip Code map. Consider this map, which shows the percent white of each Zip Code Tabulated Area (ZCTA) in New York and New Jersey: Clearly the ZCTAs in northern New York have the highest concentration of white residents. However, it would still […]