Learn R Programming

⚠️There's a newer version (2.0.4) of this package.Take me there.

algaeClassify

The goal of algaeClassify is to facilitate the analysis of taxonomic and functional trait data for phytoplankton.

Installation

You can install the released version of algaeClassify from CRAN with:

install.packages("algaeClassify")

The development version can be installed from github with:

library(devtools)
install_github("vppatil/GEISHA_phytoplankton/package builds/algaeClassify",ref="working")

Example

This is a basic example which shows you how to use algaeClassify to

  1. identify anomalies in a time-series of phytoplankton species
  2. verify/correct species names using algaebase
  3. calculate aggregate abundance at a higher taxonomic level (genus)
  4. re-plot species accumulation curves to see if the taxonomic standardization and

aggregation to higher taxonomy have resolved the anomalies.

library(algaeClassify)

data(lakegeneva) #load a demonstration dataset

#view species accumulation curve over duration of dataset to check for anomalies
accum(lakegeneva,phyto_name='genus',column='biovol_um3_ml',n=100,datename='date_dd_mm_yy',dateformat='%d-%m-%y')

#clean up binomial names and extract genus and species to new columns
lakegeneva<-genus_species_extract(lakegeneva,phyto.name='phyto_name')

#compare names against accepted taxonomy in algaebase, and extract higher taxonomy
lakegeneva.algaebase<-spp_list_algaebase(lakegeneva,long=TRUE,write=FALSE)

#merge taxonomic information into the original database
lakegeneva<-merge(lakegeneva,lakegeneva.algaebase)

#aggregate abundance data to genus level
lakegeneva.genus<-phyto_ts_aggregate(lakegeneva,SummaryType='abundance',AbundanceVar='biovol_um3_ml',
                    GroupingVar1='genus')

#plot accumulation curve again, but at genus level
accum(lakegeneva.genus,phyto_name='genus',column='biovol_um3_ml',n=100,datename='date_dd_mm_yy',dateformat='%Y-%m-%d')



Copy Link

Version

Install

install.packages('algaeClassify')

Monthly Downloads

261

Version

1.2.0

License

GPL-2 | GPL-3

Maintainer

Vijay Patil

Last Published

September 14th, 2019

Functions in algaeClassify (1.2.0)

spp_list_algaebase

Wrapper for applying algae_search function to a data.frame that contains phytoplankton species
traits_to_mfg_df

Assign morphofunctional groups to a dataframe of functional traits and higher taxonomy
phyto_ts_aggregate

Aggregate phytoplankton timeseries based on abundance. Up to 3 grouping variables can be given: e.g. genus, species, stationid, depth range. If no abundance var is given, will aggregate to presence/absence of grouping vars.
traitranges

surface/volume ratio and max linear dimension criteria for CSR From Reynolds 1988 and Reynolds 2006
traits_to_csr

Assign phytoplankton species to CSR functional groups, based on surface to volume ratio and maximum linear dimension ranges proposed by Reynolds et al. 1988;2006
date_mat

Transform a phytoplankton timeseries into a matrix of abundances for ordination
bestmatch

fuzzy partial matching between a scientific name and a list of possible matches
mean_naomit

Compute mean value while ignoring NA's
genus_species_extract

Split a dataframe column with binomial name into genus and species columns.
sampeff

Visually assess change in sampling effort over time (author: Dietmar Straile)
lakegeneva

example dataset from lake Geneva, Switzerland
accum

Split a dataframe column with binomial name into genus and species columns. Plots change in species richness over time, generates species accumulation curve, and compares SAC against simulated idealized curve assuming all unique taxa have equal probability of being sampled at any point in the time series. (author Dietmar Straile)
algae_search

Compare a genus and species name against the algaebase online database
traits_to_mfg

Assign MFG based on binary functional traits and taxonomy (Class and Order)
traits_to_csr_df

Add CSR functional group classifications to a dataframe of phytoplankton species, based on surface to volume ratio and maximum linear dimension ranges proposed by Reynolds et al. 1988;2006