-
Notifications
You must be signed in to change notification settings - Fork 2
/
README.Rmd
141 lines (106 loc) · 4.47 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
---
output:
md_document:
variant: gfm
---
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```
# WildLift
> An Open-source Tool to Guide Decisions for Wildlife Conservation
[![Linux build status](https://travis-ci.org/ABbiodiversity/WildLift.svg?branch=master)](https://travis-ci.org/ABbiodiversity/WildLift)
[![codecov](https://codecov.io/gh/ABbiodiversity/WildLift/branch/master/graph/badge.svg)](https://codecov.io/gh/ABbiodiversity/WildLift)
**WildLift** can be used to quantitatively compare the **costs** and
demographic **benefits** of recovery actions for an iconic threatened species,
woodland caribou (*Rangifer tarandus caribou*).
While we use caribou as a case study, our approach to developing this
management tool is transferable to other threatened taxa.
The tool consists of a generalized matrix population model that is
parametrized based on information from the published literature or ongoing
experiments. Users can input population parameters
(e.g., population size and survival rates) or choose from
pre-set caribou subpopulations to estimate changes to populations
from implementing recovery actions.
The tool estimates the trade-offs
associated with seven alternative recovery actions:
* Linear Feature Restoration,
* Linear Feature Deactivation,
* Maternal Penning,
* Conservation Breeding,
* Predator Exclosure,
* Wolf Reduction, and
* Moose Reduction.
Multiple recovery actions are compared allowing users to combine
demographic augmentation (maternal penning, predator exclosure,
and conservation breeding) with predator and primary prey reductions.
Try the [Shiny app](https://abbiodiversity.shinyapps.io/WildLift/) or run locally as
`WildLift::run_app()`.
## Citation
Nagy-Reis, M., Dickie, M., Sólymos, P., Gilbert, S., DeMars, C.,
Serrouya, R., and Boutin, S., 2020. WildLift: An open-source tool to
guide decisions for wildlife conservation.
*Frontiers in Ecology and Evolution*, 8:564508.
DOI [10.3389/fevo.2020.564508](https://dx.doi.org/10.3389/fevo.2020.564508)
## Installation
```{r install,eval=FALSE}
remotes::install_github("ABbiodiversity/WildLift")
```
See user visible changes in the [NEWS](NEWS.md) file.
## Usage
```{r example}
library(WildLift)
## Predefined settings
(s1 <- wildlift_settings("mat.pen"))
(s2 <- wildlift_settings("pred.excl"))
## Modifying predefined settings
wildlift_settings("mat.pen", c.surv.capt=0.65, pen.cap=30)
## Forecast based on settings for 75% females penned
f1 <- wildlift_forecast(s1, fpen.prop = 0.75)
f2 <- wildlift_forecast(s2, fpen.prop = 0.75)
## Most important results summarized
summary(f1)
summary(f2)
## Plot the results
plot(f2)
lines(f1, col = 2)
legend("topleft", col = c(1,1,2), lty = c(2,1,1),
legend = c("No pen", "Mat pen", "Pred excl"))
## Find 'breakeven' proportion of females penned where lambda=1
(b1 <- wildlift_breakeven(f1, lambda = 1))
(b2 <- wildlift_breakeven(f2, lambda = 1))
f3 <- wildlift_forecast(s1, fpen.prop = b1)
f4 <- wildlift_forecast(s2, fpen.prop = b2)
## See that lines are truly flat
op <- par(mfrow = c(1, 2))
plot(f3, main = "Mat pen")
plot(f4, main = "Pred excl")
par(op)
## Forecast using number of penned females
## - it can be an initial number
## - or a vector of individuals for subsequent years
wildlift_forecast(s1, fpen.inds = 5)
wildlift_forecast(s2, fpen.inds = c(5, 0, 4, 6))
```
## Getting Help or Reporting an Issue
To report bugs/issues/feature requests, please file an [issue](https://github.com/Abbiodiversity/WildLift/issues/).
## How to Contribute
If you would like to contribute to the package, please see our
[CONTRIBUTING](CONTRIBUTING.md) guidelines.
Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
## License
```
Copyright 2018 Province of British Columbia
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and limitations under the License.
```
---
*This project was created using the [bcgovr](https://github.com/bcgov/bcgovr) package.*