Learn R Programming

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

compositions (version 2.0-2)

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-2

License

GPL (>= 2)

Last Published

July 14th, 2021

Functions in compositions (2.0-2)

Activity10

Activity patterns of a statistician for 20 days
ClamWest

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

Animal and vegetation measurement
ClamEast

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

Compositions and depth of 25 specimens of boxite
Blood23

Blood samples
Activity31

Activity patterns of a statistician for 20 days
Aar

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

Permeabilities of bayesite
ArcticLake

Artic lake sediment samples of different water depth
HouseholdExp

Household Expenditures
Coxite

Compositions, depths and porosities of 25 specimens of coxite
Metabolites

Steroid metabolite patterns in adults and children
Firework

Firework mixtures
Hongite

Compositions of 25 specimens of hongite
Glacial

Compositions and total pebble counts of 92 glacial tills
Kongite

Compositions of 25 specimens of kongite
HotellingsTsq

Hotellings T square distribution
DiagnosticProb

Diagnostic probabilities
CompLinModCoReg

Compositional Linear Model of Coregionalisation
ConfRadius

Helper to compute confidence ellipsoids
ShiftOperators

Shifts of machine operators
SimulatedAmounts

Simulated amount datasets
Yatquat

Yatquat fruit evaluation
SerumProtein

Serum Protein compositions of blood samples
Sediments

Proportions of sand, silt and clay in sediments specimens
amounts-class

Class "amounts"
acomp

Aitchison compositions
Hydrochem

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

Proportions of supervisor's statements assigned to different categories
WhiteCells

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

AFM compositions of 23 aphyric Skye lavas
Skulls

Measurement of skulls
acomp-class

Class "acomp"
as.data.frame

Convert "compositions" classes to data frames
axis3D

Drawing a 3D coordiante system to a plot, based on package rgl
aplus-class

Class "aplus"
acomparith

Power transform in the simplex
backtransform

Automatic common backtransformation for compositions
clr2ilr

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

Amounts analysed in log-scale
balance

Compute balances for a compositional dataset.
cpt

Centered planar transform
clo

Closure of a composition
clr

Centered log ratio transform
apt

Additive planar transform
biplot3D

Three-dimensional biplots, based on package rgl
ClusterFinder1

Heuristics to find subpopulations of outliers
arrows3D

arrows in 3D, based on package rgl
colorsForOutliers

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

Compositional Ordinary Kriging
dist

Distances in variouse approaches
gsiCoorInfo

Internal functions of the compositions package
groupparts

Group amounts of parts
gsi.PrinBal

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

Fitting a Dirichlet distribution
gsi.csum

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

Internal functions: A conditional drop
gsiinternal

Environment containing the old gsi functions
gsi.eq

Internal function: Checking equality of IEEE special numbers
gsiinternal2

Internal functions of the compositions package
fitSameMeanDifferentVarianceModel

Fit Same Mean Different Variance Model
gsi.diagExtract

Internal functions: Get the diagonal of a matrix
gsipairs

Internal functions of the compositions package
gsi.varwithlosts

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

Class "compositional"
boxplot

Displaying compositions and amounts with box-plots
missing.compositions

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

Compositional Goodness of fit test
aplusarithm

vectorial arithmetic for data sets with aplus class
cdt

Centered default transform
idt

Isometric default transform
gof

Compositional Goodness of fit test
getdetectionlimit

Gets the detection limit stored in the data set
coloredBiplot

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

Internal function: Invert a permutation
CoDaDendrogram

Dendrogram representation of acomp or rcomp objects
lines

Draws connected lines from point to point.
gsi.plain

Internal function: Convert to plain vector or matrix
R2

R square
PogoJump

Honk Kong Pogo-Jumps Championship
acompmargin

Marginal compositions in Aitchison Compositions
gsi.add

Internal functions: Parallel operations of single and multiple datasets
gausstest

Classical Gauss Test
gsi.diagGenerate

Internal functions: Generate a diagonal matrix
geometricmean

The geometric mean
gsi.addclass

Internal function: give a derived subclass to an object
alr

Additive log ratio transform
gsi.expandrcomp

Internal function: Scaling rcomp
gsiplotmargin

Internal functions of the compositions package
ilrBase

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

Isometric log transform
logratioVariogram

Empirical variograms for compositions
transformations from 'mixtures' to 'compositions' classes

Transformations from 'mixtures' to 'compositions' classes
missingProjector

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

Calling from a function with the own parameters
gsi.margin

Internal function: Compute a desired compositional margin
gsi.merge2signary

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

Mean amounts and mean compositions
is.acomp

Check for compositional data type
meanrow

The arithmetic mean of rows or columns
ipt

Isometric planar transform
gsi.recode

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

Classify and summarize missing values in a dataset
gsi.isSingleRow

Internal function: Can something be considered as a single multivariate data item?
plot.acomp

Ternary diagrams
gsireset3D

Internal functions of the compositions package
gsi.mapin01

Internal functions: Storing integers as reals
gsi.simshape

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

Internal functions of the compositions package
iit

Isometric identity transform
parametricMat

Unique parametrisations for matrices.
perturbe

Perturbation of compositions
plotmissingsummary

Plot a Missing Summary
ilr

Isometric log ratio transform
mix.Read

Reads a data file in a mixR format
lrvgram

vgram2lrvgram
plotlogratioVariogram

Empirical variograms for compositions
oneOrDataset

Treating single compositions as one-row datasets
rAitchison

Aitchison Distribution
plot3D

plot in 3D based on rgl
MahalanobisDist

Compute Mahalanobis distances based von robust Estimations
princomp.rplus

Principal component analysis for real amounts
ratioLoadings

Loadings of relations of two amounts
rmultarithm

vectorial arithmetic for datasets in a classical vector scale
plot3Daplus

3D-plot of positive data
outlierclassifier

Detect and classify compositional outliers.
barplot.acomp

Bar charts of amounts
plot3Dacomp

3D-plot of compositional data
plot.aplus

Displaying amounts in scatterplots
powerofpsdmatrix

power transform of a matrix
rmult-class

Class "rmult"
qqnorm

Normal quantile plots for compositions and amounts
print.acomp

Printing compositional data.
rmultmatmult

inner product for datasets with vector scale
rplusarithm

vectorial arithmetic for data sets with rplus class
split

Splitting datasets in groups given by factors
rpois

Simulate count compositions without overdispersion
rDirichlet

Dirichlet distribution
binary

Treating binary and g-adic numbers
ccomp

Count compositions
compositions-package

compositions
cor.acomp

Correlations of amounts and compositions
ccomp-class

Class "ccomp"
princomp.rmult

Principal component analysis for real data
pwlr

Pairwise log ratio transform
princomp.rcomp

Principal component analysis for real compositions
pwlrPlot

Plots of pairwise logratio against a covariable.
straight

Draws straight lines.
ellipses

Draw ellipses
scale

Normalizing datasets by centering and scaling
kingTetrahedron

Ploting composition into rotable tetrahedron
norm

Vector space norm
rcompmargin

Marginal compositions in real geometry
jura

The jura dataset
segments

Draws straight lines from point to point.
endmemberCoordinates

Recast amounts as mixtures of end-members
summary.rcomp

Summary of compositions in real geometry
rcomparithm

Arithmetic operations for compositions in a real geometry
summary.aplus

Summaries of amounts
runif

The uniform distribution on the simplex
gsicall

Internal functions of the compositions package
scalar

Parallel scalar products
wrapped_functions

Standard R functions wrapped for compatibility
zeroreplace

Zero-replacement routine
normalize

Normalize vectors to norm 1
princomp.acomp

Principal component analysis for Aitchison compositions
princomp.aplus

Principal component analysis for amounts in log geometry
pairwiseplot

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

Pairs plot method for compositions
rlnorm

The multivariate lognormal distribution
rnorm

Normal distributions on special spaces
rmult

Simple treatment of real vectors
rMahalanobis

Compute distributions of empirical Mahalanobis distances based on simulations
variograms

Variogram functions
robustnessInCompositions

Handling robustness issues and outliers in compositions.
varmlm

Residual variance of a model
ult

Uncentered log transform
gsi.textpanel

Internal function: A panel displaying a label only
gsiinternal1

Internal functions of the compositions package
tryDebugger

Empirical variograms for compositions
subsetting

Subsetting of compositions
gsigetBalStruct

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

Internal function: Solves singular and non square equation systems
IsMahalanobisOutlier

Checking for outliers
gsi.getD

Interal function: Get number of samples and number of parts in a compositional object
rplus-class

Class "rplus"
rplus

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

Isoportion- and Isoproportion-lines
summary.acomp

Summarizing a compositional dataset in terms of ratios
vcovAcomp

Variance covariance matrix of parameters in compositional regression
vgmFit

Compositional variogram model fitting
variation

Variation matrices of amounts and compositions
acompscalarproduct

inner product for datasets with a vector space structure
matmult

inner product for matrices and vectors
var.acomp

Variances and covariances of amounts and compositions
simplemissingplot

Ternary diagrams
simulatemissings

Artifical simulation of various kinds of missings/polluted data
outliersInCompositions

Analysing outliers in compositions.
names

The names of the parts
outlierplot

Plot various graphics to analyse outliers.
mvar

Metric summary statistics of real, amount or compositional data
plot3Drmult

plot in 3D based on rgl
rcomp-class

Class "rcomp"
plot3Drplus

plot in 3D based on rgl
sumprojector

Compute the global projector to the observed subspace.
rcomp

Compositions as elements of the simplex embedded in the D-dimensional real space
Read standard data files

Reads a data file in a geoeas format
replot

Modify parameters of compositional plots.
ternaryAxis

Axis for ternary diagrams
NormalTests

Compositional Goodness of fit test
totals

Total sum of amounts