How to: Open and Plot Shapefiles in R

Shapefiles are a common way to store geospatial data. Learn how to read it with R and the rgdal package, and how to plot it in base R or with ggplot2.

Thierry Warin https://www.nuance-r.com/principalInvestigator.html (SKEMA Business School (Raleigh, NC))https://www.skema-bs.fr/campus/campus-raleigh
03-25-2020

SKEMA Quantum Studio (Warin 2019) provides this course to know how to use shapefiles.

Definition

Shapefiles are a common way to store geospatial data.

“A Shapefile is a simple, nontopological format for storing the geometric location and attribute information of geographic features. Geographic features in a shapefile can be represented by points, lines, or polygons (areas).” - Environmental Systems Research Institute (2016)

Usually, you need to dig the internet to find the shapefile you are interested in. However, multiples links to download shapefiles will be shared with you below.

Good for a map of :

Download

To use a shapefile, download the .zip file and then upload it on your platform.

Remember, the .zip file must contain at least the .shp, .shx, .dbf, and .prj files components of the shapefile for your Shapefile to work properly in SKEMA Quantum Studio.


Warin, Thierry. 2019. “SKEMA Quantum Studio: A Technological Framework for Data Science in Higher Education.” https://doi.org/10.6084/m9.figshare.8204195.v2.

Citation

For attribution, please cite this work as

Warin (2020, March 25). Virtual Campus: How to: Open and Plot Shapefiles in R. Retrieved from https://virtualcampus.skemagloballab.io/posts/howto-openandplotshapefiles/

BibTeX citation

@misc{warin2020how,
  author = {Warin, Thierry},
  title = {Virtual Campus: How to: Open and Plot Shapefiles in R},
  url = {https://virtualcampus.skemagloballab.io/posts/howto-openandplotshapefiles/},
  year = {2020}
}