Learn R Programming

nichetools

{nichetools} is a complementary package to {nicheROVER} and {SIBER} that allows the user to extract Bayesian estimates from data objects created by {nicheROVER} or {SIBER}(e.g., niche size and similarities).

Installation

You can install the development version of {nichetools} using the following:

install.packages("devtools")
devtools::install_github("benjaminhlina/nichetools")

You can install the r-universe version of {nichetools} using the following:

install.packages("nichetools", 
                 repos = c("https://benjaminhlina.r-universe.dev", 
                           "https://cran.r-project.org"))

You can install the CRAN version of {nichetools} using the following:

install.packages("nichetools")

Vignette

Once you have loaded {nichetools} and {nicheROVER} or {SIBER} you can access the vignettes using the following code:

vignette("using-nichetools-with-the-package-nicheROVER")

OR

vignette("using-nichetools-with-the-package-SIBER")

You can also use the following to see both vignettes:

browseVignettes("nichetools")

The vignettes are also available online under the articles section of the website. See the following links, how to use {nichetools} with nicheROVER and how to use {nichetools} with SIBER or on my blog.

I highly suggest going through the vignettes as they will walk you through how to use {nichetools} in tandem with {nicheROVER} or {SIBER}.

Citation

To cite this package please cite the following publications

  • Swanson, H.K., Lysy, M., Power, M., Stasko, A.D., Johnson, J.D., and Reist, J.D. 2015. A new probabilistic method for quantifying n-dimensional ecological niches and niche overlap. Ecology 96(2): 318–324. doi:10.1890/14-0235.1

  • Jackson, A.L., Inger, R., Parnell, A.C., and Bearhop, S. 2011. Comparing isotopic niche widths among and within communities: SIBER – Stable Isotope Bayesian Ellipses in R. Journal of Animal Ecology 80(3): 595–602. doi:10.1111/j.1365-2656.2011.01806.x.

  • Layman, C.A., Arrington, D.A., Montaña, C.G., and Post, D.M. 2007. Can stable isotope ratios provide for community-wide measures of trophic structure? Ecology 88(1): 42–48. link

  • Hlina B.L. 2024. nichetools: Complementary package to nicheROVER and SIBER. R package version 0.3.1. https://benjaminhlina.github.io/nichetools/

Copy Link

Version

Install

install.packages('nichetools')

Monthly Downloads

219

Version

0.3.2

License

CC0

Issues

Pull Requests

Stars

Forks

Maintainer

Benjamin Hlina

Last Published

September 30th, 2024

Functions in nichetools (0.3.2)

extract_overlap

extract overlap
nichetools-package

nichetools: Complementary Package to 'nicheROVER' and 'SIBER'
niw_fish_post

A list of the posterior estimates of \(\mu\) and \(\Sigma\) from {nicheROVER}
over_stat

A data.frame containing the estimates of percentage of overlap among groups
post_sam_siber

A list of the posterior estimates of \(\mu\) and \(\Sigma\) from {SIBER}
niche_ellipse

Create ellipses based on Bayesian estimates of \(\mu\) and \(\Sigma\)
extract_niche_size

extract niche size
extract_mu

extract \(\mu\)
mu_est_long

A data.frame containing posterior estimates of \(\mu\)
extract_group_metrics

extract maximum-likelihood estimates for group metrics
extract_sigma

extract \(\Sigma\)
extract_layman

extract Layman metrics
create_comparisons

create comparisons
extract_similarities

extract similarities
sigma_est_wide

A data.frame containing posterior estimates of \(\Sigma\)