R in Space
1
Introduction
1.1
So it begins
1.2
Beginner course
1.3
Advanced course
1.4
SessionInfo
2
Useful resources
2.1
The mapping landscape has changed!
2.1.1
Geographic Information System (GIS)
2.1.2
Web mapping tools
2.1.3
Specific packages of various programming languages
2.1.3.1
C/C++ libraries:
2.1.3.2
JavaScript:
2.1.3.3
Julia packages
2.1.3.4
Python packages
2.1.4
Free GIS data
2.2
So… why use R for mapping?
3
About spatial data
3.1
Vector data
3.1.1
Points data
3.1.2
Lines data
3.1.3
Polygons data
3.2
Raster data
3.3
Vector objects in R
3.3.1
Package
sp
3.3.1.1
Classes
3.3.1.2
SpatialPointsDataFrame
3.3.2
Package
sf
3.3.2.1
Class
sf
3.3.2.2
Class
sfc
3.3.2.3
Class
sfg
3.3.2.4
How to import a
sp
object
3.4
Raster objects in R
3.4.1
RasterLayer
3.4.2
RasterStack and RasterBrick
4
Import spatial objects
4.1
Reading and writing spatial objects with
sf
and
raster
4.2
Import spatial data from .csv file
4.2.1
Convert a data frame to simple feature objects
4.2.2
Export your points in a Shapefile
4.3
Import Shapefile data
4.4
Import GeoJSON file
4.5
Import raster data
5
Basic mapping
5.1
Plot methods for
sp
objects
5.2
plot methods for
sf
objects
5.3
plot methods for
raster
objects
5.4
plotting together
sf
and
raster
objects
5.5
Package
mapview
6
Attribute manipulations
6.1
Spatial objects attributes manipulations
6.1.1
Vector objects
6.1.2
Adding and removing attributes
6.1.3
Subsets
6.1.4
Join
6.1.5
Aggregate
7
Geometry manipulation
7.1
sp
objects
7.1.1
Subset
7.1.2
Unions
7.1.3
Buffers
7.1.4
Intersections
7.1.5
Differences
7.2
Overlays
7.3
sf
objects
7.4
raster
objects
7.4.1
Extract values
7.4.2
Mask
8
R data resources
8.1
Environmental data
8.1.1
Abiotic data
8.1.2
Biotic data
8.1.3
Base maps
9
Custom mapping
9.1
Creating a thematic map
9.2
Add a temperature raster
9.3
Crop and mask the temperature raster using quebec boundary.
9.4
Creating a simple layout
9.5
Examples of complex layouts
9.5.1
Setting data and parameters
9.5.2
First example
9.5.3
Second example
Published with bookdown
R in Space - Custom mapping
Chapter 5
Basic mapping