Spatial Statistics¶



Analysis Preparation¶

Imports¶

All of these libraries should have been previously installed during the environment set-up, if they have not been installed already you can use install.packages(c("sf", "ggplot2"))

library(sf) # for handling spatial features
library(dplyr) # used for data manipulation
library(raster) # useful in some spatial operations
library(ggplot2) # for plotting
library(zeallot) # used for unpacking variables

source('../scripts/helpers.R') # helper script, note that '../' is used to change into the directory above the directory this notebook is in
Linking to GEOS 3.8.1, GDAL 3.1.2, PROJ 7.1.0
Attaching package: ‘dplyr’
The following objects are masked from ‘package:stats’:

    filter, lag
The following objects are masked from ‘package:base’:

    intersect, setdiff, setequal, union
Loading required package: sp
Attaching package: ‘raster’
The following object is masked from ‘package:dplyr’:

    select

Loading Data¶

We’ll start by again checking to see if we need to download any data

download_data()