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-4

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Gavin Simpson

Last Published

February 6th, 2020

Functions in analogue (0.17-4)

bayesF

Bayes factors
hist.residLen

Histogram plot for residual lengths
distance

Flexibly calculate dissimilarity or distance measures
plot.evenSample

Plot distribution of samples along gradient
Stratiplot

Palaeoecological stratigraphic diagrams
bootstrapObject

Bootstrap object description
n2

Calculate Hill's N2 diversity measure
ImbrieKipp

Imbrie and Kipp foraminifera training set
evenSample

Number of samples per gradient segments
bootstrap.wa

Bootstrap estimation and errors for WA models
minDC

Extract minimum dissimilarities
caterpillarPlot

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

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

North American Modern Pollen Database
histogram.residLen

Lattice histogram plot for residual lengths
performance

Transfer function model performance statistics
reconPlot

Stratigraphic plots of palaeoenvironmental reconstructions
join

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

Lattice density plot for residual lengths
plot.logitreg

Produces plots of analogue logistic regression models
crossval

Cross-validation of palaeoecological transfer function models
dissimilarities

Extract dissimilarity coefficients from models
sppResponse

Species responses along gradients.
rankDC

Rank correlation between environmental and species dissimilarities.
stdError

Standard error of MAT fitted and predicted values
logitreg

Logistic regression models for assessing analogues/non-analogues
mat

Modern Analogue Technique transfer function models
getK

Extract and set the number of analogues
plot.dissimilarities

Plots the distribution of extracted dissimilarities
gradientDist

Positions of samples along a unit-length ordination gradient.
plot.mat

Plot diagnostics for a mat object
plot.sppResponse

Plot species responses along gradients or latent variables
mcarlo

Monte Carlo simulation of dissimilarities
residLen

Squared residual length diagnostics
plot.mcarlo

Plot Monte Carlo simulated dissimilarity distributions
plot.wa

Plot diagnostics for a weighted averaging model
summary.mat

Summarise Modern Analogue Technique models
summary.cma

Summarise the extraction of close modern analogues
fitted.logitreg

Fitted values for the training set from logistic regression models
panel.Stratiplot

Panel function for stratigraphic diagrams
optima

Weighted averaging optima and tolerance ranges
fuse

Fused dissimilarities
panel.Loess

Loess smooths to stratigraphic diagrams
predict.mat

Predict method for Modern Analogue Technique models
plot.residLen

Plot method for residual lengths
residuals.prcurve

Residuals of a principal curve fit.
predict.pcr

Predicted values from a principal components regression
pcr

Prinicpal component regression transfer function models
rlgh

Round Loch of Glenhead Diatoms
plot.prcurve

Plot a fitted principal curve in PCA space
plot.minDC

Plot of minimum dissimilarity per sample
smoothers

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

Predict news locations \& fitted values on a principal curve
plot.roc

Plot ROC curves and associated diagnostics
prcurve

Fits a principal curve to m-dimensional data
splitSample

Select samples from along an environmental gradient
wa

Weighted averaging transfer functions
roc

ROC curve analysis
predict.wa

Predict from a weighted average model
scores.prcurve

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

Summarise MAT model predictions
weightedCor

Weighted correlation test of WA reconstruction
varExpl

Variance explained by ordination axes
screeplot

Screeplots of model results
tran

Common data transformations and standardizations
predict.logitreg

Posterior probability of analogue-ness for fossil samples
summary.analog

Summarise analogue matching results
summary.bootstrap.mat

Summarise bootstrap resampling for MAT models
swapdiat

SWAP sub-fossil diatom and pH training set
swappH

SWAP sub-fossil diatom and pH training set
timetrack

Timetracks of change in species composition
abernethy

Abernethy Forest Pollen Sequence
deshrink

Deshrinking techniques for WA transfer functions
analog

Analogue matching
RMSEP

Root mean square error of prediction
cma

Close modern analogues
bootstrap

Bootstrap estimation and errors
analogue-internal

Internal analogue Functions
analogue-package

Analogue and weighted averaging methods for palaeoecology
compare

Compare proxies across two data sets