Btrait is an R-package that facilitates working with species density data, combined with species traits in R.
Apart from several R-functions, it also contains:
- Several species density data sets (northsea macrobenthos)
- Several trait databases (macrobenthos)
An interactive shiny to visualise these data is in the accompanying package BtraitWeb
The R- package is created in the framework of the EMODnet biology project.
Before installing the Btrait package, you need to first install the following R-packages and their dependencies:
- plot3D, for the simple plotting functions;
- devtools, required for a seamless installation of the Btrait package from this github repository.
During the creation, we made use of the R-package worms (now superseded by package worrms), for the taxonomic relationships;
Once the above packages have been installed, type the following command in the R-console to install the Btrait package:
devtools::install_github("EMODnet/Btrait", depend=TRUE, build_vignettes=TRUE)
If you do not want to install the vignettes, then you may delete the build_vignettes = TRUE part.
Then, type require(Btrait)
in the R-console to load the package in R.
That's it! After this step, you should be able to use the package.
You may want to try the interactive tool, which is included in the BtraitWeb package (You need to install this first).
require(BtraitWeb)
webMWTL()
As for any other R-package, you can get extra help by entering ?Btrait
in the R console.
There are two vignettes in the package, that can be triggered with
vignette("Btrait")
or vignette("BtraitData")
in the R console.
To uninstall the Btrait package, locate it in the "Packages" tab in Rstudio, and click on the encircled "x" button ("Remove package") on the right margin.
To uninstall the package manually, type the following command in the R-console (the version of the library may differ, here we assume 4.1):
- Windows users:
remove.packages("Btrait", lib="~/R/win-library/4.1")
- Linux users:
remove.packages("Btrait", lib="~/R/x86_64-pc-linux-gnu-library/4.1")
Last updates: 2024-02-08