Learn R Programming

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

analogue

Released version

Build status

LinuxWindowsCodecov

What is analogue?

analogue is an R package for use with palaeoecological data. Originally, analogue was intended as an R implementation of analogue methods such as analogue matching, ROC curves, and MAT transfer function models, and the computation of dissimilarity coefficients. Since then the scope of the package has grown to include a number of other methods applicable to data routinely encountered in palaeoecology and palaeolimnology.

Features

  • Transfer functions
    • MAT
    • Weighted Averaging with monotonic, inverse, and classical deshrinking, with and without tolerance down-weighting
    • Principal Component Regression (using ecologically-relevant transformations)
    • Cross-validation (Bootstrapping, leave-one-out, k-fold)
    • Analogue statistics
  • Analogue matching
  • Dissimilarity coefficients
    • Chord, Bray-Curtis, Gower's Generalised coefficient, Manhattan, ...
  • Dissimilarity decisions thresholds
    • ROC curves
    • Monte Carlo resampling
    • Logistic regression
  • Stratigraphic diagrams
  • Principal curves

Bugs, feature requests

Bug reports and feature requests should be filed as issues.

Licence

analogue is released under the GNU General Public Licence Version 2.

Links

Copy Link

Version

Install

install.packages('analogue')

Monthly Downloads

1,290

Version

0.17-5

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Gavin Simpson

Last Published

July 28th, 2020

Functions in analogue (0.17-5)

ImbrieKipp

Imbrie and Kipp foraminifera training set
analog

Analogue matching
abernethy

Abernethy Forest Pollen Sequence
bootstrap

Bootstrap estimation and errors
analogue-package

Analogue and weighted averaging methods for palaeoecology
Pollen

North American Modern Pollen Database
RMSEP

Root mean square error of prediction
bayesF

Bayes factors
analogue-internal

Internal analogue Functions
Stratiplot

Palaeoecological stratigraphic diagrams
crossval

Cross-validation of palaeoecological transfer function models
deshrink

Deshrinking techniques for WA transfer functions
densityplot.residLen

Lattice density plot for residual lengths
fitted.logitreg

Fitted values for the training set from logistic regression models
cma

Close modern analogues
bootstrapObject

Bootstrap object description
compare

Compare proxies across two data sets
getK

Extract and set the number of analogues
bootstrap.wa

Bootstrap estimation and errors for WA models
fuse

Fused dissimilarities
caterpillarPlot

Caterpillar plot of species' WA optima and tolerance range.
plot.minDC

Plot of minimum dissimilarity per sample
gradientDist

Positions of samples along a unit-length ordination gradient.
performance

Transfer function model performance statistics
hist.residLen

Histogram plot for residual lengths
plot.prcurve

Plot a fitted principal curve in PCA space
dissimilarities

Extract dissimilarity coefficients from models
join

Merge species data sets on common columns (species)
histogram.residLen

Lattice histogram plot for residual lengths
logitreg

Logistic regression models for assessing analogues/non-analogues
chooseTaxa

Select taxa (variables) on basis of maximum abundance attained and number of occurrences.
mat

Modern Analogue Technique transfer function models
minDC

Extract minimum dissimilarities
mcarlo

Monte Carlo simulation of dissimilarities
plot.dissimilarities

Plots the distribution of extracted dissimilarities
plot.roc

Plot ROC curves and associated diagnostics
plot.residLen

Plot method for residual lengths
plot.mat

Plot diagnostics for a mat object
plot.mcarlo

Plot Monte Carlo simulated dissimilarity distributions
rankDC

Rank correlation between environmental and species dissimilarities.
scores.prcurve

scores method for principal curve objects of class "prcurve".
predict.prcurve

Predict news locations \& fitted values on a principal curve
screeplot

Screeplots of model results
predict.wa

Predict from a weighted average model
reconPlot

Stratigraphic plots of palaeoenvironmental reconstructions
evenSample

Number of samples per gradient segments
plot.sppResponse

Plot species responses along gradients or latent variables
distance

Flexibly calculate dissimilarity or distance measures
n2

Calculate Hill's N2 diversity measure
optima

Weighted averaging optima and tolerance ranges
tran

Common data transformations and standardizations
pcr

Prinicpal component regression transfer function models
panel.Stratiplot

Panel function for stratigraphic diagrams
plot.logitreg

Produces plots of analogue logistic regression models
plot.evenSample

Plot distribution of samples along gradient
residuals.prcurve

Residuals of a principal curve fit.
sppResponse

Species responses along gradients.
residLen

Squared residual length diagnostics
panel.Loess

Loess smooths to stratigraphic diagrams
prcurve

Fits a principal curve to m-dimensional data
plot.wa

Plot diagnostics for a weighted averaging model
varExpl

Variance explained by ordination axes
predict.mat

Predict method for Modern Analogue Technique models
rlgh

Round Loch of Glenhead Diatoms
stdError

Standard error of MAT fitted and predicted values
roc

ROC curve analysis
swapdiat

SWAP sub-fossil diatom and pH training set
summary.predict.mat

Summarise MAT model predictions
splitSample

Select samples from along an environmental gradient
smoothers

Smoother plugin function for use in fitting a principal curve
predict.logitreg

Posterior probability of analogue-ness for fossil samples
predict.pcr

Predicted values from a principal components regression
summary.bootstrap.mat

Summarise bootstrap resampling for MAT models
summary.cma

Summarise the extraction of close modern analogues
wa

Weighted averaging transfer functions
swappH

SWAP sub-fossil diatom and pH training set
summary.analog

Summarise analogue matching results
summary.mat

Summarise Modern Analogue Technique models
timetrack

Timetracks of change in species composition
weightedCor

Weighted correlation test of WA reconstruction