-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
84 lines (60 loc) · 2.97 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# RLErestricted
<!-- badges: start -->
<!-- badges: end -->
`RLErestricted` is an R package that contains a set of tools suitable for calculating
the metrics required for making assessments of ecosystems against the **IUCN Red List of Ecosystems**
categories and criteria.
## Overview
The `RLErestricted` package was developed to assist users conduct assessments for the
IUCN Red List of Ecosystems in `R`. Assessments of ecosystems under the IUCN Red List of Ecosystems criteria require calculation of standardised metrics that were developed to objectively assess risk to ecosystem ([Keith et al. 2013](https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0062111)).
This package was designed to assist in the calculation of two standard measures of the size of an
ecosystems' geographic distribution specified in the IUCN Red List of Ecosystems
guidelines ([Bland et al. 2017](https://doi.org/10.2305/IUCN.CH.2016.RLE.3.en)).
These are the Extent of Occurrence (EOO) and Area of Occupancy (AOO).
In conducting an assessment with this package, we assume that you are familiar
with IUCN red listing protocols. In particular, you should consult the IUCN
guidelines and follow the recommended steps to ensure consistent application of IUCN criteria ([Bland et al. 2017](https://doi.org/10.2305/IUCN.CH.2016.RLE.3.en)).
We also assume that you are reasonably familiar with the `R` programming
language, and have some experience in conducting analyses of vector
data within the `R` environment using the package `sf` (simple features).
This is a work in progress and we aim to continually add new functions
to newer versions of package. Suggestions are welcomed, as are offers for
collaborative development.
## Installation
You can install the development version of RLErestricted from [GitHub](https://github.com/) with:
``` r
# install.packages("devtools")
devtools::install_github("red-list-ecosystem/RLErestricted")
```
## Example
The goal of `RLErestricted` is to assist users calculate one spatial metric (area of occupancy or AOO) to a group of polygons describing the distribution of an ecosystem. This information can be used to apply one of the criteria of the IUCN Red List of Ecosystems.
The first step is to create a AOO grid over the extent of the ecosystem:
```{r "create grid"}
library(RLErestricted)
library(sf)
library(dplyr)
glaciers_on_volcanos <- tropical_glaciers |>
dplyr::filter(ecosystem_name %in% "Volcanos de Peru y Chile") |>
sf::st_transform(crs = 32719)
AOO_grid <- create_AOO_grid(glaciers_on_volcanos)
```
We can see the results is a grid of cells with information about the area of the ecosystem:
```{r "show grid"}
AOO_grid
```
And we can plot this grid:
```{r plot, echo = TRUE}
plot(AOO_grid['area'])
```