Learn R Programming

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

compositions (version 2.0-0)

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,016

Version

2.0-0

License

GPL (>= 2)

Last Published

July 14th, 2020

Functions in compositions (2.0-0)

Activity10

Activity patterns of a statistician for 20 days
ArcticLake

Artic lake sediment samples of different water depth
AnimalVegetation

Animal and vegetation measurement
Activity31

Activity patterns of a statistician for 20 days
Boxite

Compositions and depth of 25 specimens of boxite
Aar

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

Permeabilities of bayesite
Hongite

Compositions of 25 specimens of hongite
Coxite

Compositions, depths and porosities of 25 specimens of coxite
ClamEast

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

Blood samples
Firework

Firework mixtures
ClamWest

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

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

Household Expenditures
HotellingsTsq

Hotellings T square distribution
Metabolites

Steroid metabolite patterns in adults and children
Glacial

Compositions and total pebble counts of 92 glacial tills
DiagnosticProb

Diagnostic probabilities
Sediments

Proportions of sand, silt and clay in sediments specimens
CompLinModCoReg

Compositional Linear Model of Coregionalisation
Kongite

Compositions of 25 specimens of kongite
ConfRadius

Helper to compute confidence ellipsoids
SimulatedAmounts

Simulated amount datasets
ShiftOperators

Shifts of machine operators
PogoJump

Honk Kong Pogo-Jumps Championship
amounts-class

Class "amounts"
acomparith

Power transform in the simplex
aplus

Amounts analysed in log-scale
acomp

Aitchison compositions
Skulls

Measurement of skulls
R2

R square
aplusarithm

vectorial arithmetic for data sets with aplus class
SerumProtein

Serum Protein compositions of blood samples
clo

Closure of a composition
clr

Centered log ratio transform
barplot.acomp

Bar charts of amounts
alr

Additive log ratio transform
binary

Treating binary and g-adic numbers
SkyeAFM

AFM compositions of 23 aphyric Skye lavas
acompmargin

Marginal compositions in Aitchison Compositions
aplus-class

Class "aplus"
biplot3D

Three-dimensional biplots, based on package rgl
as.data.frame

Convert "compositions" classes to data frames
colorsForOutliers

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

Compositional Ordinary Kriging
ccomp

Count compositions
ccomp-class

Class "ccomp"
Supervisor

Proportions of supervisor's statements assigned to different categories
cpt

Centered planar transform
WhiteCells

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

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

Compositional Goodness of fit test
gausstest

Classical Gauss Test
dist

Distances in variouse approaches
apt

Additive planar transform
cor.acomp

Correlations of amounts and compositions
Yatquat

Yatquat fruit evaluation
geometricmean

The geometric mean
arrows3D

arrows in 3D, based on package rgl
CoDaDendrogram

Dendrogram representation of acomp or rcomp objects
cdt

Centered default transform
compositions-package

compositions
fitSameMeanDifferentVarianceModel

Fit Same Mean Different Variance Model
coloredBiplot

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

Fitting a Dirichlet distribution
acomp-class

Class "acomp"
gsicall

Internal functions of the compositions package
gsiinternal1

Internal functions of the compositions package
endmemberCoordinates

Recast amounts as mixtures of end-members
gsi.margin

Internal function: Compute a desired compositional margin
ellipses

Draw ellipses
gsiCoorInfo

Internal functions of the compositions package
gsi.merge2signary

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

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

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

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

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

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

Internal functions of the compositions package
gsipairs

Internal functions of the compositions package
gsi.varwithlosts

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

Isometric default transform
kingTetrahedron

Ploting composition into rotable tetrahedron
oneOrDataset

Treating single compositions as one-row datasets
jura

The jura dataset
gsi.mapin01

Internal functions: Storing integers as reals
boxplot

Displaying compositions and amounts with box-plots
groupparts

Group amounts of parts
outlierclassifier

Detect and classify compositional outliers.
gsiinternal3

Internal functions of the compositions package
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.
backtransform

Automatic common backtransformation for compositions
is.acomp

Check for compositional data type
ipt

Isometric planar transform
gof

Compositional Goodness of fit test
getdetectionlimit

Gets the detection limit stored in the data set
gsi.add

Internal functions: Parallel operations of single and multiple datasets
gsiinternal

Environment containing the old gsi functions
gsi.svdsolve

Internal function: Solves singular and non square equation systems
gsi2.invperm

Internal function: Invert a permutation
gsi.textpanel

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

Internal function: give a derived subclass to an object
ilr

Isometric log ratio transform
iit

Isometric identity transform
IsMahalanobisOutlier

Checking for outliers
mean.acomp

Mean amounts and mean compositions
meanrow

The arithmetic mean of rows or columns
pairwiseplot

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

inner product for matrices and vectors
outliersInCompositions

Analysing outliers in compositions.
rDirichlet

Dirichlet distribution
acompscalarproduct

inner product for datasets with a vector space structure
qqnorm

Normal quantile plots for compositions and amounts
outlierplot

Plot various graphics to analyse outliers.
mvar

Metric summary statistics of real, amount or compositional data
gsi.PrinBal

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

Internal functions: Generate a diagonal matrix
gsi.diagExtract

Internal functions: Get the diagonal of a matrix
missing.compositions

The policy of treatment of missing values in the "compositions" package
compositional-class

Class "compositional"
gsi.plain

Internal function: Convert to plain vector or matrix
gsiplotmargin

Internal functions of the compositions package
gsi.drop

Internal functions: A conditional drop
robustnessInCompositions

Handling robustness issues and outliers in compositions.
gsi.eq

Internal function: Checking equality of IEEE special numbers
Read standard data files

Reads a data file in a geoeas format
gsi.expandrcomp

Internal function: Scaling rcomp
rnorm

Normal distributions on special spaces
replot

Modify parameters of compositional plots.
isoPortionLines

Isoportion- and Isoproportion-lines
MahalanobisDist

Compute Mahalanobis distances based von robust Estimations
pairs

Pairs plot method for compositions
transformations from 'mixtures' to 'compositions' classes

Transformations from 'mixtures' to 'compositions' classes
lrvgram

vgram2lrvgram
names

The names of the parts
plot3Drmult

plot in 3D based on rgl
gsifiltercall

Calling from a function with the own parameters
ilt

Isometric log transform
plot3Drplus

plot in 3D based on rgl
lines

Draws connected lines from point to point.
ilrBase

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

Pairwise log ratio transform
logratioVariogram

Empirical variograms for compositions
norm

Vector space norm
powerofpsdmatrix

power transform of a matrix
plot.aplus

Displaying amounts in scatterplots
parametricMat

Unique parametrisations for matrices.
perturbe

Perturbation of compositions
NormalTests

Compositional Goodness of fit test
gsi.recode

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

Simple treatment of real vectors
gsireset3D

Internal functions of the compositions package
rmult-class

Class "rmult"
pwlrPlot

Plots of pairwise logratio against a covariable.
zeroreplace

Zero-replacement routine
normalize

Normalize vectors to norm 1
runif

The uniform distribution on the simplex
totals

Total sum of amounts
princomp.aplus

Principal component analysis for amounts in log geometry
mix.Read

Reads a data file in a mixR format
princomp.rplus

Principal component analysis for real amounts
plot.acomp

Ternary diagrams
scalar

Parallel scalar products
princomp.acomp

Principal component analysis for Aitchison compositions
missingsummary

Classify and summarize missing values in a dataset
plot3D

plot in 3D based on rgl
plot3Daplus

3D-plot of positive data
print.acomp

Printing compositional data.
missingProjector

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

Arithmetic operations for compositions in a real geometry
princomp.rmult

Principal component analysis for real data
rcompmargin

Marginal compositions in real geometry
princomp.rcomp

Principal component analysis for real compositions
plot3Dacomp

3D-plot of compositional data
scale

Normalizing datasets by centering and scaling
rplus-class

Class "rplus"
summary.aplus

Summaries of amounts
plotlogratioVariogram

Empirical variograms for compositions
summary.rcomp

Summary of compositions in real geometry
rcomp-class

Class "rcomp"
segments

Draws straight lines from point to point.
rplus

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

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

inner product for datasets with vector scale
variograms

Variogram functions
rmultarithm

vectorial arithmetic for datasets in a classical vector scale
plotmissingsummary

Plot a Missing Summary
sumprojector

Compute the global projector to the observed subspace.
rlnorm

The multivariate lognormal distribution
ratioLoadings

Loadings of relations of two amounts
ternaryAxis

Axis for ternary diagrams
rMahalanobis

Compute distributions of empirical Mahalanobis distances based on simulations
rAitchison

Aitchison Distribution
subsetting

Subsetting of compositions
varmlm

Residual variance of a model
summary.acomp

Summarizing a compositional dataset in terms of ratios
ult

Uncentered log transform
tryDebugger

Empirical variograms for compositions
rplusarithm

vectorial arithmetic for data sets with rplus class
split

Splitting datasets in groups given by factors
straight

Draws straight lines.
rpois

Simulate count compositions without overdispersion
var.acomp

Variances and covariances of amounts and compositions
simplemissingplot

Ternary diagrams
variation

Variation matrices of amounts and compositions
simulatemissings

Artifical simulation of various kinds of missings/polluted data
vgmFit

Compositional variogram model fitting
vcovAcomp

Variance covariance matrix of parameters in compositional regression