EPS Market Map in R

[This article was first published on Data Twirling » R, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

There are a few minor tweaks renaming on this map before it is complete, but I wanted to share the EPS Market Map I put together.  It can be downloaded using this link.

This file is meant to be used with R and divides the lower 48 states into the CollegeBoard’s Enrollment Planning Service markets. To build the territories, I used the crosswalk file provided on the EPS search site (in the appendix) and ‘dissolved’ the zip codes into markets. Help on how I performed this task can be found here and here.

As you will see below, there are still a few gaps in the map that I need to fill in.  Ideally, the Collegeboard would have provided the necessary GIS files to us, but currently that is not an option.

My end game is to use this file to geocode Lat/Long data to EPS territories in addition to basic choropleth mapping for enrollment planning.  If you want to contribute to this project, please don’t hesitate to reach out!

The Rdata file currently includes 3 objects.  This will change as I finalize the map files.

  1. eps.missing which is a data frame of zip codes that still need to be associated with an EPS territory
  2. myzip which is a SpatialPolysDataFrame object.  It is the map of the lower 48 by zip code.  To plot, simply use the command plot(myzip) but note it will take a minute or so depending on your machine
  3. eps.markets is the working draft of the eps markets map and is the same type as myzip
Here are two quick plots of the map.  The image on the top simply plots each market as red, which helps in finding the gaps.  The image on the bottom uses a random color for each market.
> plot(eps.markets, col=sample(colors(), 301, replace=T))
> plot(eps.markets, col="red")


To leave a comment for the author, please follow the link and comment on their blog: Data Twirling » R.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)