2 Introduction to Landscape Metrics

Landscape Metrics are simply mathematical formulations to quantify landscape pattern. Metrics can quantify landscape composition (what is on the landscape) or configuration (how the landscape is organized). They should be thought of as descriptive statistics.

The landscapemetrics package (by Maximilian Hesselbarth and colleagues) in R lets you run a suite of metrics at the patch, class and landscape scale. Full documentation for the package is here.

This package is designed to run many of the metrics developed by Kevin McGarigal and colleagues that are part of the Fragstats software. You can read more about Fragstats if you are interested. If you plan to use landscape metrics in your own research, you should definitely reach up more about these metrics and look at some of Dr. McGarigal’s original work. For the purposes of this class, we will just work through a few demonstrations of the metrics to give you a sense of how they work.

If you are not familiar with the basics of R (e.g., installing and loading packages, setting up a working directory) please review the Quantitative Skills for Biology Guide.

You need two packages for this exercise, landscapemetrics and raster

library(landscapemetrics)
library(raster)

2.1 Key terms to understand

2.1.1 Patch

An area of the landscape delineated from its surroundings by being relatively more homogeneous within its boundaries than compared to its surroundings. Another way of saying this is a patch is an area of the landscape with a single landcover type.

2.1.2 Raster map

A raster map is a digital map where the landscape is depicted as pixels. Each pixel has a value assigned to it that describes a landcover type. For example 1 = coniferous forest, 2 = deciduous forest, 3 = water, 4 = urban.

2.1.3 Neighour rule

How a patch is delineated in a raster map. If using the 4-neighbour rule (rook’s case), pixels with the same cover type that are joined in the vertical and/or horizontal directions are considered part of the same patch. That is a pixel with a value of “1” surrounded by 4 pixels on each of the horizontal and vertical sides would all be considered part of the same patch. If using the 8-neighbour rule (queens’ case), pixels with the same cover type that are joined in the vertical, and/or horizontal and/or diagonal directions are considered part of the same patch. See diagram below for an illustration.

NOTE: landscapaemetrics defaults to the eight-neighbour rule in most metrics. To confirm, use the documentation at the help() function to see what the defaults are. If you want to change this you will have to modify the argument. We will illustrate this a little later on.

A diagram depicting the four-neighbour rule (a) vs the eight-neighobur rule (b) for defining landscape patches in a raster map. In (a) there are 6 distinct patches, in (b) there are 2 distinct patches. From Turner (2015).

2.2 Patch-level metrics

Patch level metrics are metrics that describe properties of each individual patch. If you run a patch-level metric you will get as many lines of output as there are patches on the map.

2.3 Class-level metrics

Class level metrics are metrics that describe patterns at each class (class= landcover type). For example, in a simple map that shows forest, agriculture and urban pixels, a class level metric might describe average patch size for each of those 3 classes. If you run a class-level metric, you will get as many lines of output as there are classes on the map.

2.4 Landscape-level metrics

Landscape level metrics describe the entire landscape. If you run a landscape-level metric you get one line of output.