Map Projections for R Shapefiles: United States

[This article was first published on R Tricks, 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.

Someone contacted me recently about the map projections used in my blscrapeR package. After a bit of web searching, I couldn’t find a really good list of map projections for the continental U.S. that could be used in R. This list is as much for my own reference as anyone else, but hope you find it useful.

Here’s my list of map projections that are appropriate to map the continental U.S. in R. DISCLAIMER: I have omitted many, if you like another, comment and I’ll add to the list. The full code is below in Gist form. There are many other projections listed here, I just displayed the ones I find most useful.

The Native Map Projection
U-g-l-y, you ain’t got no alibi!

# Default projection of the map can be found by running the following on the SpatialPolyGonsDataFrame.
raster::crs(county)

# Then apply the result to the CRS() functions.
us.map 

standardproj

Mercator Projection

# Mercator projection.
us.map 

mercatorproj

Lambert Azimuthal Equal Area Projection

# Lambert Azimuthal Equal Area
us.mpa 

lambertaproj

Lambert Conformal Conic Projection

# Lambert Conformal Conic
us.mpa 

lambertconicalproj

Albers Equal Area Projection

# Albers Equal Area
us.mpa 

alberse

Albers Equal Area Conic Projection

# Albers Equal Area Conic
us.mpa 

albersequalareaconicproj

Full Code
Here’s the full script I used, including all of the projection arguments, shapefile and mapping data.

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

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)