Learn R Programming

compositions (version 2.0-8)

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

Version

2.0-8

License

GPL (>= 2)

Last Published

January 31st, 2024

Functions in compositions (2.0-8)

CompLinModCoReg

Compositional Linear Model of Coregionalisation
Coxite

Compositions, depths and porosities of 25 specimens of coxite
ConfRadius

Helper to compute confidence ellipsoids
Hydrochem

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

Household Expenditures
HotellingsTsq

Hotellings T square distribution
Glacial

Compositions and total pebble counts of 92 glacial tills
Hongite

Compositions of 25 specimens of hongite
Firework

Firework mixtures
DiagnosticProb

Diagnostic probabilities
Kongite

Compositions of 25 specimens of kongite
Skulls

Measurement of skulls
R2

R square
PogoJump

Honk Kong Pogo-Jumps Championship
Yatquat

Yatquat fruit evaluation
SimulatedAmounts

Simulated amount datasets
acomp-class

Class "acomp"
ShiftOperators

Shifts of machine operators
acomparith

Power transform in the simplex
acomp

Aitchison compositions
alr

Additive log ratio transform
Metabolites

Steroid metabolite patterns in adults and children
acompmargin

Marginal compositions in Aitchison Compositions
Sediments

Proportions of sand, silt and clay in sediments specimens
WhiteCells

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

AFM compositions of 23 aphyric Skye lavas
SerumProtein

Serum Protein compositions of blood samples
Supervisor

Proportions of supervisor's statements assigned to different categories
apt

Additive planar transform
arrows3D

arrows in 3D, based on package rgl
axis3D

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

Amounts analysed in log-scale
aplusarithm

vectorial arithmetic for data sets with aplus class
as.data.frame

Convert "compositions" classes to data frames or matrices
backtransform

Automatic common backtransformation for compositions
balance

Compute balances for a compositional dataset.
amounts-class

Class "amounts"
aplus-class

Class "aplus"
barplot.acomp

Bar charts of amounts
boxplot

Displaying compositions and amounts with box-plots
ccomp-class

Class "ccomp"
clr2ilr

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

Count compositions
ccompgof

Compositional Goodness of fit test
clo

Closure of a composition
ClusterFinder1

Heuristics to find subpopulations of outliers
clr

Centered log ratio transform
biplot3D

Three-dimensional biplots, based on package rgl
cdt

Centered default transform
binary

Treating binary and g-adic numbers
compOKriging

Compositional Ordinary Kriging
cor.acomp

Correlations of amounts and compositions
missing.compositions

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

Distances in variouse approaches
cpt

Centered planar transform
colorsForOutliers

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

Class "compositional"
compositions-package

tools:::Rd_package_title("compositions")
coloredBiplot

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

Dendrogram representation of acomp or rcomp objects
groupparts

Group amounts of parts
gof

Compositional Goodness of fit test
getdetectionlimit

Gets the detection limit stored in the data set
fitSameMeanDifferentVarianceModel

Fit Same Mean Different Variance Model
geometricmean

The geometric mean
fitdirichlet

Fitting a Dirichlet distribution
gausstest

Classical Gauss Test
gsicall

Internal functions of the compositions package
gsi.addclass

Internal function: give a derived subclass to an object
gsi.add

Internal functions: Parallel operations of single and multiple datasets
ellipses

Draw ellipses
endmemberCoordinates

Recast amounts as mixtures of end-members
gsi.margin

Internal function: Compute a desired compositional margin
gsifiltercall

Calling from a function with the own parameters
gsiCoorInfo

Internal functions of the compositions package
gsi.merge2signary

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

Internal function: Scaling rcomp
gsi.PrinBal

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

Internal function: Checking equality of IEEE special numbers
gsi.plain

Internal function: Convert to plain vector or matrix
gsiinternal1

Internal functions of the compositions package
gsi.drop

Internal functions: A conditional drop
gsiplotmargin

Internal functions of the compositions package
gsi.diagExtract

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

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

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

Isometric planar transform
gsi.csum

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

Internal functions: Generate a diagonal matrix
oneOrDataset

Treating single compositions as one-row datasets
gsi.isSingleRow

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

Check for compositional data type
gsi.recode

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

vgram2lrvgram
normalize

Normalize vectors to norm 1
gsireset3D

Internal functions of the compositions package
iit

Isometric identity transform
ilr

Isometric log ratio transform
meanrow

The arithmetic mean of rows or columns
logratioVariogram

Empirical variograms for compositions
gsi.mapin01

Internal functions: Storing integers as reals
gsiinternal

Environment containing the old gsi functions
missingProjector

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

Internal function: Solves singular and non square equation systems
IsMahalanobisOutlier

Checking for outliers
gsi.textpanel

Internal function: A panel displaying a label only
acompscalarproduct

inner product for datasets with a vector space structure
isoPortionLines

Isoportion- and Isoproportion-lines
gsipairs

Internal functions of the compositions package
gsi.varwithlosts

Internal function: computes variance of compositional data set with missing/zero values
mean.acomp

Mean amounts and mean compositions
gsiinternal2

Internal functions of the compositions package
pairwiseplot

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

Compute Mahalanobis distances based von robust Estimations
matmult

inner product for matrices and vectors
idt

Isometric default transform
outliersInCompositions

Analysing outliers in compositions.
outlierclassifier

Detect and classify compositional outliers.
mix.Read

Reads a data file in a mixR format
gsi2.invperm

Internal function: Invert a permutation
mvar

Metric summary statistics of real, amount or compositional data
outlierplot

Plot various graphics to analyse outliers.
gsiinternal3

Internal functions of the compositions package
gsi.simshape

Internal function: Reshape an object to the shape type of another
princomp.aplus

Principal component analysis for amounts in log geometry
perturbe

Perturbation of compositions
plot.acomp

Ternary diagrams
princomp.rcomp

Principal component analysis for real compositions
ilrBase

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

3D-plot of positive data
plot3Drmult

plot in 3D based on rgl
kdeDirichlet

Density estimation on the simplex with Dirichlet kernel
jura

The jura dataset
ilt

Isometric log transform
names

The names of the parts
princomp.rplus

Principal component analysis for real amounts
norm

Vector space norm
princomp.rmult

Principal component analysis for real data
plot3Drplus

plot in 3D based on rgl
qqnorm

Normal quantile plots for compositions and amounts
pwlrPlot

Plots of pairwise logratio against a covariable.
plotlogratioVariogram

Empirical variograms for compositions
ratioLoadings

Loadings of relations of two amounts
rcomp-class

Class "rcomp"
rmultarithm

vectorial arithmetic for datasets in a classical vector scale
rmult-class

Class "rmult"
rcompmargin

Marginal compositions in real geometry
rmult

Simple treatment of real vectors
replot

Modify parameters of compositional plots.
rMahalanobis

Compute distributions of empirical Mahalanobis distances based on simulations
powerofpsdmatrix

power transform of a matrix
kingTetrahedron

Ploting composition into rotable tetrahedron
Read standard data files

Reads a data file in a geoeas format
rlnorm

The multivariate lognormal distribution
pairs

Pairs plot method for compositions
lines

Draws connected lines from point to point.
rplus

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

3D-plot of compositional data
missingsummary

Classify and summarize missing values in a dataset
parametricMat

Unique parametrisations for matrices.
transformations from 'mixtures' to 'compositions' classes

Transformations from 'mixtures' to 'compositions' classes
plotmissingsummary

Plot a Missing Summary
princomp.acomp

Principal component analysis for Aitchison compositions
plot3D

plot in 3D based on rgl
runif

The uniform distribution on the simplex
rDirichlet

Dirichlet distribution
rpois

Simulate count compositions without overdispersion
rAitchison

Aitchison Distribution
straight

Draws straight lines.
subsetting

Subsetting of compositions
rplusarithm

vectorial arithmetic for data sets with rplus class
summary.rcomp

Summary of compositions in real geometry
rplus-class

Class "rplus"
rmultmatmult

inner product for datasets with vector scale
rcomparithm

Arithmetic operations for compositions in a real geometry
rcomp

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

Handling robustness issues and outliers in compositions.
rnorm

Normal distributions on special spaces
sumprojector

Compute the global projector to the observed subspace.
varmlm

Residual variance of a model
totals

Total sum of amounts
summary.acomp

Summarizing a compositional dataset in terms of ratios
ult

Uncentered log transform
tryDebugger

Empirical variograms for compositions
vcovAcomp

Variance covariance matrix of parameters in compositional regression
simulatemissings

Artifical simulation of various kinds of missings/polluted data
zeroreplace

Zero-replacement routine
split

Splitting datasets in groups given by factors
var.acomp

Variances and covariances of amounts and compositions
summary.aplus

Summaries of amounts
variation

Variation matrices of amounts and compositions
variograms

Variogram functions
plot.aplus

Displaying amounts in scatterplots
scalar

Parallel scalar products
print.acomp

Printing compositional data.
pwlr

Pairwise log ratio transform
scale

Normalizing datasets by centering and scaling
ternaryAxis

Axis for ternary diagrams
segments

Draws straight lines from point to point.
simplemissingplot

Ternary diagrams
NormalTests

Compositional Goodness of fit test
vgmFit

Compositional variogram model fitting
wrapped_functions

Standard R functions wrapped for compatibility
Activity31

Activity patterns of a statistician for 20 days
Boxite

Compositions and depth of 25 specimens of boxite
AnimalVegetation

Animal and vegetation measurement
Aar

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

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

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

Artic lake sediment samples of different water depth
Activity10

Activity patterns of a statistician for 20 days
Blood23

Blood samples
Bayesite

Permeabilities of bayesite