Publications by Ari Lamstein
How to Remove State Abbreviations from a Choroplethr Map
Today I will demonstrate how to remove state abbreviations from a choroplethr map. I will also demonstrate how to combine multiple maps into a single image. This is what the final image looks like: In this case the abbreviations obscure information for the northeast part of the country, so it’s useful to remove them. Step 1: Create a Map With ...
2528 sym R (713 sym/4 pcs) 10 img
New release: Choroplethr v3.2.0
Today I am happy to announce that a new version of choroplethr, v3.2.0, is now available. You can get it by typing the following from an R console: install.packages("choroplethr") Note that it sometimes takes a few days for new packages to get copied to each CRAN mirror. If install.packages(“choroplethr”) only gets you version 3.1.0, pleas...
2618 sym R (1205 sym/4 pcs) 8 img
Free R Help
Today I am giving away 10 sessions of free, online, one-on-one R help. My hope is to get a better understanding of how my readers use R, and the issues they face when working on their own projects. The sessions will be over the next two weeks, online and 30-60 minutes each. I just purchased Screenhero, which will allow me to screen share during ...
2096 sym R (725 sym/1 pcs) 4 img
New Lesson: Mapping Historic Census Data in R
Today I am happy to announce a new lesson for my free email course Learn to Map Census Data in R. This lesson explains how to get and map historic census data in R. While I had intended this lesson to only go to new signups, it looks like my email provider sent it (along with resending the conclusion email!) to anyone who ever took the course. I ...
2182 sym R (614 sym/4 pcs) 8 img
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 be useful to see the border between New York a...
1377 sym R (956 sym/3 pcs) 6 img
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 ...
3328 sym R (2001 sym/5 pcs) 18 img 1 tbl
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 projects. Overall I w...
2405 sym 2 img
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 different refer...
2546 sym R (1527 sym/4 pcs) 10 img
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...
2253 sym 8 img
Free Webinar: Make a Census Explorer with Shiny
Next Friday at noon PDT I will be hosting a free webinar titled Make a Census Explorer with Shiny. You can register for it here. Space is limited, so if you are interested then I recommend that you reserve your space today. The content will be very similar to the workshop that I ran at the San Francisco R-Ladies group in July. You can learn mo...
1174 sym 2 img