[R Course] How to: Open and Plot Shapefiles in R

R Courses

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://warin.ca/aboutme.html (HEC Montréal and CIRANO (Canada))https://www.hec.ca/en/profs/thierry.warin.html
03-25-2020


Nüance-R provides this course to teach you how to open and plot a shapefile. Take a look at this course!

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.


Citation

For attribution, please cite this work as

Warin (2020, March 25). Thierry Warin, PhD: [R Course] How to: Open and Plot Shapefiles in R. Retrieved from https://warin.ca/posts/rcourse-howto-openandplotshapefiles/

BibTeX citation

@misc{warin2020[r,
  author = {Warin, Thierry},
  title = {Thierry Warin, PhD: [R Course] How to: Open and Plot Shapefiles in R},
  url = {https://warin.ca/posts/rcourse-howto-openandplotshapefiles/},
  year = {2020}
}