-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.Rmd
More file actions
65 lines (49 loc) · 1.72 KB
/
Copy pathREADME.Rmd
File metadata and controls
65 lines (49 loc) · 1.72 KB
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
---
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%"
)
```
# rpathviz <img src="man/figures/logo.png" align="right" width="120" />
<!-- badges: start -->
[](https://github.com/biadias/rpathviz/actions/workflows/R-CMD-check.yaml)
[](https://app.codecov.io/gh/biadias/rpathviz)
<!-- badges: end -->
Visualizations for the [Rpath](https://github.com/NOAA-EDAB/Rpath) package.
Plot beautiful food web diagrams and interactive simulation time series from
your Ecopath/Ecosim models.
## Installation
```{r, eval = FALSE}
remotes::install_github("biadias/rpathviz", build_vignettes = FALSE)
```
If you experience issues with `remotes`, use this alternative:
```{r, eval = FALSE}
pak::pak("biadias/rpathviz")
```
## Food web plot — `webplotviz()`
```{r goa-plot, message=FALSE, warning=FALSE, fig.width=14, fig.height=9}
library(rpathviz)
library(Rpath)
# Build the Gulf of Alaska model
GOA.obj <- rpath(Ecosense.GOA, eco.name = "Gulf of Alaska")
# Plot the food web
webplotviz(
GOA.obj,
h_spacing = 3,
text_size = 2.5,
node_size_min = 1,
node_size_max = 50
)
```
*Figure 1. Western Gulf of Alaska marine food web.*
## References
Lucey, S. M., Gaichas, S. K., & Aydin, K. Y. (2020). Conducting reproducible
ecosystem modeling using the open source mass balance model Rpath. *Ecological
Modelling* 427(2020), 109057.
<https://doi.org/10.1016/j.ecolmodel.2020.109057>