-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathREADME.Rmd
52 lines (41 loc) · 3.08 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
---
title: "BioIndex"
author: "Walter Zupa"
date: "`r Sys.Date()`"
output: github_document
vignette: >
%\VignetteIndexEntry{BioIndex}
%\VignetteEngine{knitr::knitr}
%\usepackage[UTF-8]{inputenc}
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
library(BioIndex)
```
# Installation
Install the latest BioIndex release from GitHub:
```{r installation}
library(devtools)
install_github("COISPA/BioIndex",upgrade = c("never"))
## uncomment the following code line to install the package buiding the vignettes
# install_github("COISPA/BioIndex",upgrade = c("never"), build_vignettes = TRUE)
```
# Description
BioIndex is an R library to perform analysis of trawl survey data using MEDITS file format.
The functions were previously used in the context of the Black Sea expert group to analyse data collected in the Black Sea turbot demersal trawl survey. Then, an updated version (v. 3.1) of the software was issued and upgraded to elaborate data collected during rapa whelk scientific survey too.
The actual version of the software, BioIndex v4.04 was developed in R language (version 4.2.1) and presented to the Black Sea experts. Bioindex library is able to perform analysis on both MEDITS and MEDITS-like data (Black Sea survey data) after that the integrity of data tables is checked with RoME package functions.
The software allows to perform the analysis on survey data following the random stratified sampling, (e.g., MEDITS survey) at GSA level, but in cases two or more countries are included in the same GSA, the analysis can be also conducted at country level. The functions included in the package allows to estimate the time series and the spatial distribution of a wide pool of population state-indicators for a selected species ().
BioIndex routine also offers the possibilities to perform statistical trend analysis of both abundance and biomass time series based on the Hotelling-Pabst test (Cotter, 2009) and to perform a spatial analysis, placing a list of indices in the spatial dimension, using the 0.5*0.5° GFCM grid or bubble plots, to describe, for example, the average distribution and abundance of the species at local and regional spatial scale or the localization of sensitive life stage of the population.
BioIndex package was built to work both on stand-alone (on a local machine) or online, embedded in the RDBFIS environment. A complete analysis on a selected species can be launched on TA, TB and TC tables (MEDITS data format) running the BioIndex function which calls the single functions devoted to specific analyses. Each function can also be used independently from the others, if a given analysis would be carried out.
# Use
```{r, fig.height=8, fig.width=8}
BioIndex(ta=TA, tb=TB, tc=TC, sspp="MERLMER",rec_threshold=200,
spaw_threshold=210,sexes="all", depth=c(10,800), GSA=10,
country="all", map_lim=c(13.3,15.2,39.9,41.3),
depth_lines=c(50,200,800), strata=BioIndex::strata_scheme,
stratification_tab = BioIndex::stratification, resolution=1,
buffer=0.1, wd=tempdir(), zip=TRUE, save=TRUE, verbose=TRUE)
```