Learn R Programming

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

compositions (version 1.40-3)

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

1.40-3

License

GPL (>= 2)

Maintainer

K Gerald van den Boogaart

Last Published

October 25th, 2019

Functions in compositions (1.40-3)

Aar

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

Blood samples
Activity31

Activity patterns of a statistician for 20 days
ClamEast

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

Permeabilities of bayesite
Activity10

Activity patterns of a statistician for 20 days
AnimalVegetation

Animal and vegetation measurement
Boxite

Compositions and depth of 25 specimens of boxite
ArcticLake

Artic lake sediment samples of different water depth
ClamWest

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

Compositions, depths and porosities of 25 specimens of coxite
HouseholdExp

Household Expenditures
Metabolites

Steroid metabolite patterns in adults and children
ConfRadius

Helper to compute confidence ellipsoids
Kongite

Compositions of 25 specimens of kongite
CompLinModCoReg

Compositional Linear Model of Coregionalisation
WhiteCells

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

Diagnostic probabilities
Supervisor

Proportions of supervisor's statements assigned to different categories
ccomp

Count compositions
Hydrochem

Hydrochemical composition data set of Llobregat river basin water (NE Spain)
ccompgof

Compositional Goodness of fit test
Firework

Firework mixtures
coloredBiplot

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

Honk Kong Pogo-Jumps Championship
Glacial

Compositions and total pebble counts of 92 glacial tills
R2

R square
Yatquat

Yatquat fruit evaluation
Skulls

Measurement of skulls
barplot.acomp

Bar charts of amounts
acomp

Aitchison compositions
colorsForOutliers

Create a color/char palette or for groups of outliers
compositions-package

compositions
binary

Treating binary and g-adic numbers
cor.acomp

Correlations of amounts and compositions
ClusterFinder1

Heuristics to find subpopulations of outliers
CoDaDendrogram

Dendrogram representation of acomp or rcomp objects
SkyeAFM

AFM compositions of 23 aphyric Skye lavas
Hongite

Compositions of 25 specimens of hongite
gsigetBalStruct

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

Internal function: row and column sums of matrices
gsiCoorInfo

Internal functions of the compositions package
gsi.getD

Interal function: Get number of samples and number of parts in a compositional object
Sediments

Proportions of sand, silt and clay in sediments specimens
SerumProtein

Serum Protein compositions of blood samples
gsiplotmargin

Internal functions of the compositions package
compOKriging

Compositional Ordinary Kriging
gsi.plain

Internal function: Convert to plain vector or matrix
missing.compositions

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

Marginal compositions in Aitchison Compositions
balance

Compute balances for a compositional dataset.
acomparith

Power transform in the simplex
axis3D

Drawing a 3D coordiante system to a plot, based on package rgl
fitdirichlet

Fitting a Dirichlet distribution
iit

Isometric identity transform
ilr

Isometric log ratio transform
HotellingsTsq

Hotellings T square distribution
ShiftOperators

Shifts of machine operators
fitSameMeanDifferentVarianceModel

Fit Same Mean Different Variance Model
gsi.addclass

Internal function: give a derived subclass to an object
geometricmean

The geometric mean
gausstest

Classical Gauss Test
gsi.add

Internal functions: Parallel operations of single and multiple datasets
ipt

Isometric planar transform
is.acomp

Check for compositional data type
meanrow

The arithmetic mean of rows or columns
mean.acomp

Mean amounts and mean compositions
SimulatedAmounts

Simulated amount datasets
alr

Additive log ratio transform
aplusarithm

vectorial arithmetic for data sets with aplus class
gsi.drop

Internal functions: A conditional drop
perturbe

Perturbation of compositions
groupparts

Group amounts of parts
aplus

Amounts analysed in log-scale
powerofpsdmatrix

power transform of a matrix
plot.acomp

Ternary diagrams
biplot3D

Three-dimensional biplots, based on package rgl
gsi.PrinBal

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

arrows in 3D, based on package rgl
apt

Additive planar transform
as.data.frame

Convert "compositions" classes to data frames
clr

Centered log ratio transform
boxplot

Displaying compositions and amounts with box-plots
clr2ilr

Convert between clr and ilr, and between cpt and ipt.
princomp.aplus

Principal component analysis for amounts in log geometry
princomp.acomp

Principal component analysis for Aitchison compositions
gsiinternal

Environment containing the old gsi functions
gsireset3D

Internal functions of the compositions package
gsiinternal1

Internal functions of the compositions package
gsicall

Internal functions of the compositions package
gsi.recode

Internal function: Recode missings with IEEE number and vice versa
princomp.rcomp

Principal component analysis for real compositions
oneOrDataset

Treating single compositions as one-row datasets
plot3D

plot in 3D based on rgl
outlierclassifier

Detect and classify compositional outliers.
gsi2.invperm

Internal function: Invert a permutation
qqnorm

Normal quantile plots for compositions and amounts
rmultarithm

vectorial arithmetic for datasets in a classical vector scale
plot3Dacomp

3D-plot of compositional data
rDirichlet

Dirichlet distribution
rmultmatmult

inner product for datasets with vector scale
cdt

Centered default transform
gsi.eq

Internal function: Checking equality of IEEE special numbers
cpt

Centered planar transform
dist

Distances in variouse approaches
gsi.isSingleRow

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

Closure of a composition
gsi.mapin01

Internal functions: Storing integers as reals
gsi.varwithlosts

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

Isometric default transform
endmemberCoordinates

Recast amounts as mixtures of end-members
ellipses

Draw ellipses
getdetectionlimit

Gets the detection limit stored in the data set
rpois

Simulate count compositions without overdispersion
lrvgram

vgram2lrvgram
runif

The uniform distribution on the simplex
gof

Compositional Goodness of fit test
gsi.expandrcomp

Internal function: Scaling rcomp
ilt

Isometric log transform
gsifiltercall

Calling from a function with the own parameters
ilrBase

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

Marginal compositions in real geometry
segments

Draws straight lines from point to point.
Read standard data files

Reads a data file in a geoeas format
simplemissingplot

Ternary diagrams
gsi.margin

Internal function: Compute a desired compositional margin
gsi.simshape

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

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

Internal functions of the compositions package
IsMahalanobisOutlier

Checking for outliers
isoPortionLines

Isoportion- and Isoproportion-lines
MahalanobisDist

Compute Mahalanobis distances based von robust Estimations
lines

Draws connected lines from point to point.
mix.Read

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

Transformations from 'mixtures' to 'compositions' classes
gsi.diagGenerate

Internal functions: Generate a diagonal matrix
gsi.svdsolve

Internal function: Solves singular and non square equation systems
gsiinternal2

Internal functions of the compositions package
gsi.diagExtract

Internal functions: Get the diagonal of a matrix
plotmissingsummary

Plot a Missing Summary
gsi.textpanel

Internal function: A panel displaying a label only
gsipairs

Internal functions of the compositions package
plot.aplus

Displaying amounts in scatterplots
logratioVariogram

Empirical variograms for compositions
missingProjector

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

Vector space norm
princomp.rmult

Principal component analysis for real data
plot3Daplus

3D-plot of positive data
plot3Drmult

plot in 3D based on rgl
princomp.rplus

Principal component analysis for real amounts
normalize

Normalize vectors to norm 1
missingsummary

Classify and summarize missing values in a dataset
NormalTests

Compositional Goodness of fit test
summary.aplus

Summaries of amounts
summary.rcomp

Summary of compositions in real geometry
vcovAcomp

Variance covariance matrix of parameters in compositional regression
rAitchison

Aitchison Distribution
names

The names of the parts
plotlogratioVariogram

Empirical variograms for compositions
parametricMat

Unique parametrisations for matrices.
pwlrPlot

Plots of pairwise logratio against a covariable.
print.acomp

Printing compositional data.
mvar

Metric summary statistics of real, amount or compositional data
scalar

Parallel scalar products
plot3Drplus

plot in 3D based on rgl
pairwiseplot

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

Compute distributions of empirical Mahalanobis distances based on simulations
ratioLoadings

Loadings of relations of two amounts
sumprojector

Compute the global projector to the observed subspace.
variograms

Variogram functions
varmlm

Residual variance of a model
ternaryAxis

Axis for ternary diagrams
rmult

Simple treatment of real vectors
vgmFit

Compositional variogram model fitting
jura

The jura dataset
acompscalarproduct

inner product for datasets with a vector space structure
kingTetrahedron

Ploting composition into rotable tetrahedron
matmult

inner product for matrices and vectors
totals

Total sum of amounts
replot

Modify parameters of compositional plots.
rlnorm

The multivariate lognormal distribution
outliersInCompositions

Analysing outliers in compositions.
outlierplot

Plot various graphics to analyse outliers.
rcomp

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

Arithmetic operations for compositions in a real geometry
scale

Normalizing datasets by centering and scaling
straight

Draws straight lines.
summary.acomp

Summarizing a compositional dataset in terms of ratios
rnorm

Normal distributions on special spaces
zeroreplace

Zero-replacement routine
rplusarithm

vectorial arithmetic for data sets with rplus class
ult

Uncentered log transform
rplus

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

Empirical variograms for compositions
split

Splitting datasets in groups given by factors
variation

Variation matrices of amounts and compositions
var.acomp

Variances and covariances of amounts and compositions
simulatemissings

Artifical simulation of various kinds of missings/polluted data
robustnessInCompositions

Handling robustness issues and outliers in compositions.