arc2r

This R Package contains all the datasets that are used in the book “All things R Spatial: An introduction to spatial-R for recovering ArcGIS users”. You can install it via github with the following command:

# install.packages("devtools")
devtools::install_github("arc2r/arc2r")

Once installed, you have access to all datasets uses in the book. This can be very helpful if you want to follow along with the book. See following example of loading a dataset from the package and plotting it.

library(arc2r)
library(sf)
#> Linking to GEOS 3.8.1, GDAL 3.1.4, PROJ 6.3.1

data("kantonsgebiet")

plot(kantonsgebiet["NAME"])