Skip to content

McCannLab/ontarioSpatialData

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ontarioSpatialData

Collection of R scripts to retrieve data and create maps.

Installation

install.packages("remotes")
remotes::install_github("inSileco/graphicsutils")  # https://github.com/inSileco/graphicsutils
install.packages(c("sf", "sp", "rgeos", "raster", "tidyverse", "rgdal"))

Data

Climate data

There is two ways to retrieve climate data:

  1. use the bash script: getMaps.sh in bash/;
cd bash
sh getMaps.sh
  1. use retrieveClimatData().
source("R/retrieveClimateData.R")
retrieveClimateData(years = 2014:2015, info = "bio", res = 300)

Elevation Data

  • Elevation data as well as administrative boundaries are retrieved using getData() from raster package.

Lakes and watersheds

In data/ are included shapefiles for Great Lakes and watersheds:

Land Use data

See https://open.canada.ca/data/en/dataset/18e3ef1a-497c-40c6-8326-aac1a34a0dec. The description of the categories is in the ISO 19131 – Land Use 1990, 2000, 2010 Data Product Specifications

Maps

See R/basicMaps.R

References

If you need to learn more about how to manipulate GIS data using R, have a look at this tutorial on inSileco.

About

Few lines of code to get draw simple but useful maps

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors