Learn R Programming

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

compositions (version 2.0-5)

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

9,946

Version

2.0-5

License

GPL (>= 2)

Maintainer

K Gerald van den Boogaart

Last Published

February 4th, 2023

Functions in compositions (2.0-5)

ClamWest

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

Blood samples
Activity10

Activity patterns of a statistician for 20 days
Bayesite

Permeabilities of bayesite
ClamEast

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

Animal and vegetation measurement
Boxite

Compositions and depth of 25 specimens of boxite
Firework

Firework mixtures
Activity31

Activity patterns of a statistician for 20 days
ArcticLake

Artic lake sediment samples of different water depth
Glacial

Compositions and total pebble counts of 92 glacial tills
CompLinModCoReg

Compositional Linear Model of Coregionalisation
Coxite

Compositions, depths and porosities of 25 specimens of coxite
HotellingsTsq

Hotellings T square distribution
Hydrochem

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

Compositions of 25 specimens of hongite
HouseholdExp

Household Expenditures
DiagnosticProb

Diagnostic probabilities
ConfRadius

Helper to compute confidence ellipsoids
Kongite

Compositions of 25 specimens of kongite
ShiftOperators

Shifts of machine operators
Metabolites

Steroid metabolite patterns in adults and children
PogoJump

Honk Kong Pogo-Jumps Championship
Skulls

Measurement of skulls
SkyeAFM

AFM compositions of 23 aphyric Skye lavas
Sediments

Proportions of sand, silt and clay in sediments specimens
SerumProtein

Serum Protein compositions of blood samples
R2

R square
Supervisor

Proportions of supervisor's statements assigned to different categories
WhiteCells

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

Class "aplus"
amounts-class

Class "amounts"
acompmargin

Marginal compositions in Aitchison Compositions
SimulatedAmounts

Simulated amount datasets
alr

Additive log ratio transform
acomparith

Power transform in the simplex
arrows3D

arrows in 3D, based on package rgl
apt

Additive planar transform
acomp

Aitchison compositions
aplus

Amounts analysed in log-scale
aplusarithm

vectorial arithmetic for data sets with aplus class
binary

Treating binary and g-adic numbers
barplot.acomp

Bar charts of amounts
cdt

Centered default transform
ccomp-class

Class "ccomp"
ccomp

Count compositions
ccompgof

Compositional Goodness of fit test
axis3D

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

Three-dimensional biplots, based on package rgl
clr

Centered log ratio transform
clo

Closure of a composition
boxplot

Displaying compositions and amounts with box-plots
as.data.frame

Convert "compositions" classes to data frames or matrices
ClusterFinder1

Heuristics to find subpopulations of outliers
balance

Compute balances for a compositional dataset.
clr2ilr

Convert between clr and ilr, and between cpt and ipt.
acomp-class

Class "acomp"
backtransform

Automatic common backtransformation for compositions
Yatquat

Yatquat fruit evaluation
cor.acomp

Correlations of amounts and compositions
cpt

Centered planar transform
compositions-package

tools:::Rd_package_title("compositions")
missing.compositions

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

Create a color/char palette or for groups of outliers
compositional-class

Class "compositional"
compOKriging

Compositional Ordinary Kriging
gof

Compositional Goodness of fit test
getdetectionlimit

Gets the detection limit stored in the data set
groupparts

Group amounts of parts
dist

Distances in variouse approaches
gsicall

Internal functions of the compositions package
gsiinternal1

Internal functions of the compositions package
gsi.diagExtract

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

Internal functions: Generate a diagonal matrix
fitSameMeanDifferentVarianceModel

Fit Same Mean Different Variance Model
gsi.drop

Internal functions: A conditional drop
gsi.eq

Internal function: Checking equality of IEEE special numbers
fitdirichlet

Fitting a Dirichlet distribution
gsi.add

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

Internal function: give a derived subclass to an object
coloredBiplot

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

Draw ellipses
gausstest

Classical Gauss Test
gsi.margin

Internal function: Compute a desired compositional margin
gsiinternal

Environment containing the old gsi functions
gsi.merge2signary

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

Recast amounts as mixtures of end-members
geometricmean

The geometric mean
CoDaDendrogram

Dendrogram representation of acomp or rcomp objects
gsi.PrinBal

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

Internal functions of the compositions package
gsigetBalStruct

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

Internal function: Reshape an object to the shape type of another
gsiinternal3

Internal functions of the compositions package
gsi.csum

Internal function: row and column sums of matrices
gsi2.invperm

Internal function: Invert a permutation
gsi.getD

Interal function: Get number of samples and number of parts in a compositional object
gsi.svdsolve

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

Internal function: Recode missings with IEEE number and vice versa
gsifiltercall

Calling from a function with the own parameters
gsi.expandrcomp

Internal function: Scaling rcomp
gsireset3D

Internal functions of the compositions package
gsi.isSingleRow

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

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

Isometric identity transform
gsi.plain

Internal function: Convert to plain vector or matrix
gsiplotmargin

Internal functions of the compositions package
gsipairs

Internal functions of the compositions package
gsi.mapin01

Internal functions: Storing integers as reals
logratioVariogram

Empirical variograms for compositions
gsiinternal2

Internal functions of the compositions package
isoPortionLines

Isoportion- and Isoproportion-lines
ilt

Isometric log transform
IsMahalanobisOutlier

Checking for outliers
matmult

inner product for matrices and vectors
ilr

Isometric log ratio transform
gsi.varwithlosts

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

Compute Mahalanobis distances based von robust Estimations
is.acomp

Check for compositional data type
lrvgram

vgram2lrvgram
norm

Vector space norm
missingProjector

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

The arithmetic mean of rows or columns
names

The names of the parts
missingsummary

Classify and summarize missing values in a dataset
kingTetrahedron

Ploting composition into rotable tetrahedron
ipt

Isometric planar transform
gsi.textpanel

Internal function: A panel displaying a label only
normalize

Normalize vectors to norm 1
oneOrDataset

Treating single compositions as one-row datasets
lines

Draws connected lines from point to point.
transformations from 'mixtures' to 'compositions' classes

Transformations from 'mixtures' to 'compositions' classes
acompscalarproduct

inner product for datasets with a vector space structure
mean.acomp

Mean amounts and mean compositions
perturbe

Perturbation of compositions
plot.acomp

Ternary diagrams
outliersInCompositions

Analysing outliers in compositions.
jura

The jura dataset
kdeDirichlet

Density estimation on the simplex with Dirichlet kernel
plot3Dacomp

3D-plot of compositional data
plot3D

plot in 3D based on rgl
idt

Isometric default transform
mix.Read

Reads a data file in a mixR format
mvar

Metric summary statistics of real, amount or compositional data
outlierclassifier

Detect and classify compositional outliers.
plot3Daplus

3D-plot of positive data
plotmissingsummary

Plot a Missing Summary
plot3Drmult

plot in 3D based on rgl
plot.aplus

Displaying amounts in scatterplots
plot3Drplus

plot in 3D based on rgl
plotlogratioVariogram

Empirical variograms for compositions
pairwiseplot

Creates a paneled plot like pairs for two different datasets.
rcomp-class

Class "rcomp"
rMahalanobis

Compute distributions of empirical Mahalanobis distances based on simulations
ratioLoadings

Loadings of relations of two amounts
princomp.rmult

Principal component analysis for real data
outlierplot

Plot various graphics to analyse outliers.
princomp.rplus

Principal component analysis for real amounts
rcomp

Compositions as elements of the simplex embedded in the D-dimensional real space
princomp.aplus

Principal component analysis for amounts in log geometry
rcomparithm

Arithmetic operations for compositions in a real geometry
rmult-class

Class "rmult"
robustnessInCompositions

Handling robustness issues and outliers in compositions.
pairs

Pairs plot method for compositions
rplus-class

Class "rplus"
rmultarithm

vectorial arithmetic for datasets in a classical vector scale
rmult

Simple treatment of real vectors
summary.rcomp

Summary of compositions in real geometry
pwlrPlot

Plots of pairwise logratio against a covariable.
qqnorm

Normal quantile plots for compositions and amounts
scalar

Parallel scalar products
simplemissingplot

Ternary diagrams
scale

Normalizing datasets by centering and scaling
segments

Draws straight lines from point to point.
powerofpsdmatrix

power transform of a matrix
princomp.acomp

Principal component analysis for Aitchison compositions
rDirichlet

Dirichlet distribution
print.acomp

Printing compositional data.
sumprojector

Compute the global projector to the observed subspace.
princomp.rcomp

Principal component analysis for real compositions
parametricMat

Unique parametrisations for matrices.
ult

Uncentered log transform
pwlr

Pairwise log ratio transform
var.acomp

Variances and covariances of amounts and compositions
rAitchison

Aitchison Distribution
rcompmargin

Marginal compositions in real geometry
straight

Draws straight lines.
Read standard data files

Reads a data file in a geoeas format
rplus

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

Simulate count compositions without overdispersion
totals

Total sum of amounts
runif

The uniform distribution on the simplex
rplusarithm

vectorial arithmetic for data sets with rplus class
summary.acomp

Summarizing a compositional dataset in terms of ratios
wrapped_functions

Standard R functions wrapped for compatibility
tryDebugger

Empirical variograms for compositions
vgmFit

Compositional variogram model fitting
rnorm

Normal distributions on special spaces
replot

Modify parameters of compositional plots.
simulatemissings

Artifical simulation of various kinds of missings/polluted data
subsetting

Subsetting of compositions
split

Splitting datasets in groups given by factors
rlnorm

The multivariate lognormal distribution
rmultmatmult

inner product for datasets with vector scale
summary.aplus

Summaries of amounts
variograms

Variogram functions
variation

Variation matrices of amounts and compositions
zeroreplace

Zero-replacement routine
varmlm

Residual variance of a model
vcovAcomp

Variance covariance matrix of parameters in compositional regression
NormalTests

Compositional Goodness of fit test
ternaryAxis

Axis for ternary diagrams
Aar

Composition of glaciar sediments from the Aar massif (Switzerland)