Learn R Programming

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

compositions (version 1.40-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

10,267

Version

1.40-5

License

GPL (>= 2)

Maintainer

K Gerald van den Boogaart

Last Published

April 8th, 2020

Functions in compositions (1.40-5)

Aar

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

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

Household Expenditures
Glacial

Compositions and total pebble counts of 92 glacial tills
AnimalVegetation

Animal and vegetation measurement
Activity10

Activity patterns of a statistician for 20 days
ClamWest

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

Firework mixtures
Boxite

Compositions and depth of 25 specimens of boxite
Blood23

Blood samples
Bayesite

Permeabilities of bayesite
CompLinModCoReg

Compositional Linear Model of Coregionalisation
Hydrochem

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

Diagnostic probabilities
alr

Additive log ratio transform
ConfRadius

Helper to compute confidence ellipsoids
Coxite

Compositions, depths and porosities of 25 specimens of coxite
Kongite

Compositions of 25 specimens of kongite
Skulls

Measurement of skulls
SkyeAFM

AFM compositions of 23 aphyric Skye lavas
Metabolites

Steroid metabolite patterns in adults and children
PogoJump

Honk Kong Pogo-Jumps Championship
ShiftOperators

Shifts of machine operators
clr

Centered log ratio transform
gausstest

Classical Gauss Test
SimulatedAmounts

Simulated amount datasets
clr2ilr

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

Power transform in the simplex
biplot3D

Three-dimensional biplots, based on package rgl
Yatquat

Yatquat fruit evaluation
geometricmean

The geometric mean
aplus

Amounts analysed in log-scale
boxplot

Displaying compositions and amounts with box-plots
acompmargin

Marginal compositions in Aitchison Compositions
axis3D

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

Gets the detection limit stored in the data set
Hongite

Compositions of 25 specimens of hongite
ClusterFinder1

Heuristics to find subpopulations of outliers
CoDaDendrogram

Dendrogram representation of acomp or rcomp objects
acomp

Aitchison compositions
R2

R square
gof

Compositional Goodness of fit test
ccomp

Count compositions
gsipairs

Internal functions of the compositions package
balance

Compute balances for a compositional dataset.
gsi.expandrcomp

Internal function: Scaling rcomp
gsifiltercall

Calling from a function with the own parameters
HotellingsTsq

Hotellings T square distribution
aplusarithm

vectorial arithmetic for data sets with aplus class
apt

Additive planar transform
gsiinternal2

Internal functions of the compositions package
iit

Isometric identity transform
Sediments

Proportions of sand, silt and clay in sediments specimens
ilr

Isometric log ratio transform
ccompgof

Compositional Goodness of fit test
compositions-package

compositions
SerumProtein

Serum Protein compositions of blood samples
barplot.acomp

Bar charts of amounts
jura

The jura dataset
compOKriging

Compositional Ordinary Kriging
kingTetrahedron

Ploting composition into rotable tetrahedron
missingsummary

Classify and summarize missing values in a dataset
Supervisor

Proportions of supervisor's statements assigned to different categories
gsi.add

Internal functions: Parallel operations of single and multiple datasets
missing.compositions

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

Returns a projector the the observed space in case of missings.
gsi.addclass

Internal function: give a derived subclass to an object
cor.acomp

Correlations of amounts and compositions
as.data.frame

Convert "compositions" classes to data frames
binary

Treating binary and g-adic numbers
WhiteCells

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

arrows in 3D, based on package rgl
gsi.getD

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

Plot various graphics to analyse outliers.
outliersInCompositions

Analysing outliers in compositions.
plot3Drplus

plot in 3D based on rgl
ellipses

Draw ellipses
gsi.margin

Internal function: Compute a desired compositional margin
coloredBiplot

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

plot in 3D based on rgl
gsigetBalStruct

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

Centered default transform
princomp.rcomp

Principal component analysis for real compositions
rAitchison

Aitchison Distribution
endmemberCoordinates

Recast amounts as mixtures of end-members
groupparts

Group amounts of parts
ratioLoadings

Loadings of relations of two amounts
clo

Closure of a composition
cpt

Centered planar transform
princomp.rmult

Principal component analysis for real data
colorsForOutliers

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

Internal functions of the compositions package
dist

Distances in variouse approaches
gsi.PrinBal

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

Internal functions: A conditional drop
gsicall

Internal functions of the compositions package
gsiinternal1

Internal functions of the compositions package
gsi.csum

Internal function: row and column sums of matrices
gsi.merge2signary

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

Internal functions: Get the diagonal of a matrix
rplusarithm

vectorial arithmetic for data sets with rplus class
fitdirichlet

Fitting a Dirichlet distribution
fitSameMeanDifferentVarianceModel

Fit Same Mean Different Variance Model
gsiinternal

Environment containing the old gsi functions
gsi.diagGenerate

Internal functions: Generate a diagonal matrix
gsi.eq

Internal function: Checking equality of IEEE special numbers
rplus

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

Compute the global projector to the observed subspace.
gsi2.invperm

Internal function: Invert a permutation
gsi.simshape

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

Axis for ternary diagrams
gsi.isSingleRow

Internal function: Can something be considered as a single multivariate data item?
gsi.plain

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

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

Compute Mahalanobis distances based von robust Estimations
ilt

Isometric log transform
gsi.mapin01

Internal functions: Storing integers as reals
gsireset3D

Internal functions of the compositions package
gsi.varwithlosts

Internal function: computes variance of compositional data set with missing/zero values
gsi.svdsolve

Internal function: Solves singular and non square equation systems
ilrBase

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

Variance covariance matrix of parameters in compositional regression
idt

Isometric default transform
gsiinternal3

Internal functions of the compositions package
lrvgram

vgram2lrvgram
lines

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

Transformations from 'mixtures' to 'compositions' classes
gsiplotmargin

Internal functions of the compositions package
gsi.textpanel

Internal function: A panel displaying a label only
vgmFit

Compositional variogram model fitting
IsMahalanobisOutlier

Checking for outliers
logratioVariogram

Empirical variograms for compositions
mix.Read

Reads a data file in a mixR format
plotmissingsummary

Plot a Missing Summary
perturbe

Perturbation of compositions
parametricMat

Unique parametrisations for matrices.
plotlogratioVariogram

Empirical variograms for compositions
matmult

inner product for matrices and vectors
qqnorm

Normal quantile plots for compositions and amounts
acompscalarproduct

inner product for datasets with a vector space structure
rDirichlet

Dirichlet distribution
ipt

Isometric planar transform
mean.acomp

Mean amounts and mean compositions
norm

Vector space norm
meanrow

The arithmetic mean of rows or columns
is.acomp

Check for compositional data type
plot.acomp

Ternary diagrams
princomp.acomp

Principal component analysis for Aitchison compositions
pairwiseplot

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

plot in 3D based on rgl
normalize

Normalize vectors to norm 1
pairs

Pairs plot method for compositions
isoPortionLines

Isoportion- and Isoproportion-lines
scalar

Parallel scalar products
scale

Normalizing datasets by centering and scaling
summary.aplus

Summaries of amounts
plot3Dacomp

3D-plot of compositional data
summary.rcomp

Summary of compositions in real geometry
names

The names of the parts
rlnorm

The multivariate lognormal distribution
princomp.aplus

Principal component analysis for amounts in log geometry
Read standard data files

Reads a data file in a geoeas format
oneOrDataset

Treating single compositions as one-row datasets
mvar

Metric summary statistics of real, amount or compositional data
replot

Modify parameters of compositional plots.
rcompmargin

Marginal compositions in real geometry
tryDebugger

Empirical variograms for compositions
ult

Uncentered log transform
outlierclassifier

Detect and classify compositional outliers.
plot3Daplus

3D-plot of positive data
rmultarithm

vectorial arithmetic for datasets in a classical vector scale
zeroreplace

Zero-replacement routine
pwlr

Pairwise log ratio transform
segments

Draws straight lines from point to point.
rmultmatmult

inner product for datasets with vector scale
plot.aplus

Displaying amounts in scatterplots
pwlrPlot

Plots of pairwise logratio against a covariable.
rcomp

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

Compositional Goodness of fit test
simplemissingplot

Ternary diagrams
rpois

Simulate count compositions without overdispersion
print.acomp

Printing compositional data.
runif

The uniform distribution on the simplex
princomp.rplus

Principal component analysis for real amounts
rcomparithm

Arithmetic operations for compositions in a real geometry
totals

Total sum of amounts
powerofpsdmatrix

power transform of a matrix
rMahalanobis

Compute distributions of empirical Mahalanobis distances based on simulations
simulatemissings

Artifical simulation of various kinds of missings/polluted data
rmult

Simple treatment of real vectors
robustnessInCompositions

Handling robustness issues and outliers in compositions.
rnorm

Normal distributions on special spaces
straight

Draws straight lines.
split

Splitting datasets in groups given by factors
summary.acomp

Summarizing a compositional dataset in terms of ratios
varmlm

Residual variance of a model
var.acomp

Variances and covariances of amounts and compositions
variograms

Variogram functions
variation

Variation matrices of amounts and compositions
ArcticLake

Artic lake sediment samples of different water depth
Activity31

Activity patterns of a statistician for 20 days