EPS Market Map in R

November 6, 2012

(This article was first published on Data Twirling » R, and kindly contributed to R-bloggers)

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 on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...

If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.


Mango solutions

RStudio homepage

Zero Inflated Models and Generalized Linear Mixed Models with R

Quantide: statistical consulting and training



CRC R books series

Contact us if you wish to help support R-bloggers, and place your banner here.

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)