Learn R Programming

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

compositions (version 2.0-1)

Compositional Data Analysis

Description

Provides functions for the consistent analysis of compositional data (e.g. portions of substances) and positive numbers (e.g. concentrations) in the way proposed by J. Aitchison and V. Pawlowsky-Glahn.

Copy Link

Version

Install

install.packages('compositions')

Monthly Downloads

10,267

Version

2.0-1

License

GPL (>= 2)

Maintainer

K Gerald van den Boogaart

Last Published

January 8th, 2021

Functions in compositions (2.0-1)

Boxite

Compositions and depth of 25 specimens of boxite
AnimalVegetation

Animal and vegetation measurement
Aar

Composition of glaciar sediments from the Aar massif (Switzerland)
ClamWest

Color-size compositions of 20 clam colonies from West Bay
Activity31

Activity patterns of a statistician for 20 days
Blood23

Blood samples
ArcticLake

Artic lake sediment samples of different water depth
ClamEast

Color-size compositions of 20 clam colonies from East Bay
Activity10

Activity patterns of a statistician for 20 days
Bayesite

Permeabilities of bayesite
Hongite

Compositions of 25 specimens of hongite
HotellingsTsq

Hotellings T square distribution
SimulatedAmounts

Simulated amount datasets
Yatquat

Yatquat fruit evaluation
ShiftOperators

Shifts of machine operators
aplus-class

Class "aplus"
ConfRadius

Helper to compute confidence ellipsoids
amounts-class

Class "amounts"
Metabolites

Steroid metabolite patterns in adults and children
CompLinModCoReg

Compositional Linear Model of Coregionalisation
acomp-class

Class "acomp"
Kongite

Compositions of 25 specimens of kongite
HouseholdExp

Household Expenditures
Firework

Firework mixtures
Coxite

Compositions, depths and porosities of 25 specimens of coxite
Glacial

Compositions and total pebble counts of 92 glacial tills
axis3D

Drawing a 3D coordiante system to a plot, based on package rgl
as.data.frame

Convert "compositions" classes to data frames
R2

R square
aplusarithm

vectorial arithmetic for data sets with aplus class
PogoJump

Honk Kong Pogo-Jumps Championship
acomparith

Power transform in the simplex
Hydrochem

Hydrochemical composition data set of Llobregat river basin water (NE Spain)
barplot.acomp

Bar charts of amounts
binary

Treating binary and g-adic numbers
apt

Additive planar transform
aplus

Amounts analysed in log-scale
Sediments

Proportions of sand, silt and clay in sediments specimens
acomp

Aitchison compositions
clo

Closure of a composition
ccomp-class

Class "ccomp"
clr

Centered log ratio transform
ccomp

Count compositions
biplot3D

Three-dimensional biplots, based on package rgl
arrows3D

arrows in 3D, based on package rgl
boxplot

Displaying compositions and amounts with box-plots
WhiteCells

White-cell composition of 30 blood samples by two different methods
DiagnosticProb

Diagnostic probabilities
Skulls

Measurement of skulls
Supervisor

Proportions of supervisor's statements assigned to different categories
SerumProtein

Serum Protein compositions of blood samples
acompmargin

Marginal compositions in Aitchison Compositions
SkyeAFM

AFM compositions of 23 aphyric Skye lavas
alr

Additive log ratio transform
CoDaDendrogram

Dendrogram representation of acomp or rcomp objects
ccompgof

Compositional Goodness of fit test
cpt

Centered planar transform
backtransform

Automatic common backtransformation for compositions
balance

Compute balances for a compositional dataset.
clr2ilr

Convert between clr and ilr, and between cpt and ipt.
dist

Distances in variouse approaches
compositional-class

Class "compositional"
missing.compositions

The policy of treatment of missing values in the "compositions" package
cdt

Centered default transform
colorsForOutliers

Create a color/char palette or for groups of outliers
fitSameMeanDifferentVarianceModel

Fit Same Mean Different Variance Model
fitdirichlet

Fitting a Dirichlet distribution
getdetectionlimit

Gets the detection limit stored in the data set
gof

Compositional Goodness of fit test
gsicall

Internal functions of the compositions package
gsiinternal1

Internal functions of the compositions package
gsi.getD

Interal function: Get number of samples and number of parts in a compositional object
compositions-package

compositions
gsi.add

Internal functions: Parallel operations of single and multiple datasets
gsi.addclass

Internal function: give a derived subclass to an object
compOKriging

Compositional Ordinary Kriging
cor.acomp

Correlations of amounts and compositions
coloredBiplot

A biplot providing somewhat easier access to details of the plot.
gsiinternal

Environment containing the old gsi functions
ellipses

Draw ellipses
gsi.csum

Internal function: row and column sums of matrices
gausstest

Classical Gauss Test
gsi.expandrcomp

Internal function: Scaling rcomp
geometricmean

The geometric mean
ClusterFinder1

Heuristics to find subpopulations of outliers
gsiCoorInfo

Internal functions of the compositions package
groupparts

Group amounts of parts
gsi.recode

Internal function: Recode missings with IEEE number and vice versa
gsi.plain

Internal function: Convert to plain vector or matrix
gsi.PrinBal

The canonical basis in the clr plane used for ilr and ipt transforms.
gsigetBalStruct

An auxiliary functions to compute user-defined ilr and ipt transforms.
endmemberCoordinates

Recast amounts as mixtures of end-members
ilrBase

The canonical basis in the clr plane used for ilr and ipt transforms.
ilt

Isometric log transform
gsireset3D

Internal functions of the compositions package
gsi.simshape

Internal function: Reshape an object to the shape type of another
gsi.varwithlosts

Internal function: computes variance of compositional data set with missing/zero values
gsifiltercall

Calling from a function with the own parameters
gsiinternal3

Internal functions of the compositions package
gsiinternal2

Internal functions of the compositions package
gsi.margin

Internal function: Compute a desired compositional margin
gsi.eq

Internal function: Checking equality of IEEE special numbers
gsi.drop

Internal functions: A conditional drop
gsi.merge2signary

Auxiliary functions to compute user-defined ilr and ipt transforms.
gsipairs

Internal functions of the compositions package
gsiplotmargin

Internal functions of the compositions package
iit

Isometric identity transform
gsi.diagGenerate

Internal functions: Generate a diagonal matrix
gsi.diagExtract

Internal functions: Get the diagonal of a matrix
gsi.textpanel

Internal function: A panel displaying a label only
gsi.svdsolve

Internal function: Solves singular and non square equation systems
gsi.mapin01

Internal functions: Storing integers as reals
gsi.isSingleRow

Internal function: Can something be considered as a single multivariate data item?
IsMahalanobisOutlier

Checking for outliers
lrvgram

vgram2lrvgram
idt

Isometric default transform
ilr

Isometric log ratio transform
norm

Vector space norm
gsi2.invperm

Internal function: Invert a permutation
isoPortionLines

Isoportion- and Isoproportion-lines
kingTetrahedron

Ploting composition into rotable tetrahedron
jura

The jura dataset
parametricMat

Unique parametrisations for matrices.
lines

Draws connected lines from point to point.
matmult

inner product for matrices and vectors
acompscalarproduct

inner product for datasets with a vector space structure
ipt

Isometric planar transform
perturbe

Perturbation of compositions
is.acomp

Check for compositional data type
princomp.acomp

Principal component analysis for Aitchison compositions
plotlogratioVariogram

Empirical variograms for compositions
plotmissingsummary

Plot a Missing Summary
normalize

Normalize vectors to norm 1
princomp.aplus

Principal component analysis for amounts in log geometry
missingsummary

Classify and summarize missing values in a dataset
princomp.rcomp

Principal component analysis for real compositions
outlierplot

Plot various graphics to analyse outliers.
missingProjector

Returns a projector the the observed space in case of missings.
outliersInCompositions

Analysing outliers in compositions.
mix.Read

Reads a data file in a mixR format
transformations from 'mixtures' to 'compositions' classes

Transformations from 'mixtures' to 'compositions' classes
logratioVariogram

Empirical variograms for compositions
print.acomp

Printing compositional data.
princomp.rplus

Principal component analysis for real amounts
plot.acomp

Ternary diagrams
mean.acomp

Mean amounts and mean compositions
pwlr

Pairwise log ratio transform
pwlrPlot

Plots of pairwise logratio against a covariable.
princomp.rmult

Principal component analysis for real data
meanrow

The arithmetic mean of rows or columns
mvar

Metric summary statistics of real, amount or compositional data
names

The names of the parts
pairwiseplot

Creates a paneled plot like pairs for two different datasets.
MahalanobisDist

Compute Mahalanobis distances based von robust Estimations
pairs

Pairs plot method for compositions
qqnorm

Normal quantile plots for compositions and amounts
rmult-class

Class "rmult"
rDirichlet

Dirichlet distribution
plot3D

plot in 3D based on rgl
rcompmargin

Marginal compositions in real geometry
rcomparithm

Arithmetic operations for compositions in a real geometry
scalar

Parallel scalar products
runif

The uniform distribution on the simplex
split

Splitting datasets in groups given by factors
straight

Draws straight lines.
rmult

Simple treatment of real vectors
outlierclassifier

Detect and classify compositional outliers.
plot3Dacomp

3D-plot of compositional data
oneOrDataset

Treating single compositions as one-row datasets
plot3Daplus

3D-plot of positive data
vcovAcomp

Variance covariance matrix of parameters in compositional regression
robustnessInCompositions

Handling robustness issues and outliers in compositions.
rnorm

Normal distributions on special spaces
rplusarithm

vectorial arithmetic for data sets with rplus class
rpois

Simulate count compositions without overdispersion
Read standard data files

Reads a data file in a geoeas format
rcomp-class

Class "rcomp"
powerofpsdmatrix

power transform of a matrix
plot.aplus

Displaying amounts in scatterplots
rcomp

Compositions as elements of the simplex embedded in the D-dimensional real space
vgmFit

Compositional variogram model fitting
replot

Modify parameters of compositional plots.
summary.acomp

Summarizing a compositional dataset in terms of ratios
subsetting

Subsetting of compositions
rMahalanobis

Compute distributions of empirical Mahalanobis distances based on simulations
rlnorm

The multivariate lognormal distribution
variograms

Variogram functions
summary.rcomp

Summary of compositions in real geometry
scale

Normalizing datasets by centering and scaling
summary.aplus

Summaries of amounts
NormalTests

Compositional Goodness of fit test
totals

Total sum of amounts
varmlm

Residual variance of a model
variation

Variation matrices of amounts and compositions
var.acomp

Variances and covariances of amounts and compositions
zeroreplace

Zero-replacement routine
ratioLoadings

Loadings of relations of two amounts
plot3Drplus

plot in 3D based on rgl
plot3Drmult

plot in 3D based on rgl
rAitchison

Aitchison Distribution
rmultmatmult

inner product for datasets with vector scale
rmultarithm

vectorial arithmetic for datasets in a classical vector scale
rplus-class

Class "rplus"
segments

Draws straight lines from point to point.
sumprojector

Compute the global projector to the observed subspace.
rplus

Amounts i.e. positive numbers analysed as objects of the real vector space
ternaryAxis

Axis for ternary diagrams
simplemissingplot

Ternary diagrams
tryDebugger

Empirical variograms for compositions
ult

Uncentered log transform
simulatemissings

Artifical simulation of various kinds of missings/polluted data