-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.Rmd
74 lines (52 loc) · 3.04 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
---
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%"
)
```
# b3gbi <a href="https://b-cubed-eu.github.io/b3gbi/"><img src="man/figures/logo.png" align="right" height="120" alt="b3gbi website"/></a>
<!-- badges: start -->
[![CRAN status](https://www.r-pkg.org/badges/version/b3gbi)](https://CRAN.R-project.org/package=b3gbi)
[![R-CMD-check](https://github.com/b-cubed-eu/b3gbi/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/b-cubed-eu/b3gbi/actions/workflows/R-CMD-check.yaml)
[![codecov](https://codecov.io/gh/b-cubed-eu/b3gbi/branch/main/graph/badge.svg)](https://app.codecov.io/gh/b-cubed-eu/b3gbi/)
[![repo status](https://www.repostatus.org/badges/latest/wip.svg)](https://www.repostatus.org/#wip)
<!-- badges: end -->
Analyze biodiversity trends and spatial patterns from GBIF data cubes, using flexible indicators like richness, evenness, and more.
## Overview
Biodiversity researchers need robust and standardized tools to analyze the vast amounts of data available on platforms like GBIF. The b3gbi package leverages the power of data cubes to streamline biodiversity assessments. It helps researchers gain insights into:
* **Changes Over Time:** How biodiversity metrics shift throughout the years.
* **Spatial Variations:** Differences in biodiversity across regions, identifying hotspots or areas of concern.
* **The Impact of Factors:** How different environmental variables or human activities might affect biodiversity patterns.
## Key Features
b3gbi empowers biodiversity analysis with:
* **Standardized Workflows:** Simplify the process of calculating common biodiversity indicators from GBIF data cubes.
* **Flexibility:** Calculate richness, evenness, rarity, taxonomic distinctness, Shannon-Hill diversity, Simpson-Hill diversity, and more.
* **Analysis Options:** Explore temporal trends or create spatial maps.
* **Visualization Tools:** Generate publication-ready plots of your biodiversity metrics.
## Installation
You can install the development version of b3gbi from [GitHub](https://github.com/) with:
```R
# install.packages("devtools")
devtools::install_github("b-cubed-eu/b3gbi")
```
## Example
This is a basic example which shows you how to calculate and plot a map of species richness for a data cube containing GBIF occurrence data on amphibians in Europe:
```{r example, warning = FALSE, message = FALSE}
# Load package
library(b3gbi)
# Load GBIF data cube
cube_name <- system.file("extdata", "denmark_mammals_cube_eqdgc.csv", package = "b3gbi")
# Prepare cube
mammal_data <- process_cube(cube_name)
# Calculate diversity metric
map_obs_rich_mammals <- obs_richness_map(mammal_data, level = "country", region = "Denmark")
# Plot diversity metric
plot(map_obs_rich_mammals, title = "Observed Species Richness: Mammals in Denmark")
```
For a more in-depth introduction, see the tutorial: https://b-cubed-eu.github.io/b3gbi/articles/b3gbi.html.