Learn R Programming

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

compositions (version 2.0-4)

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

License

GPL (>= 2)

Last Published

January 5th, 2022

Functions in compositions (2.0-4)

Bayesite

Permeabilities of bayesite
DiagnosticProb

Diagnostic probabilities
Metabolites

Steroid metabolite patterns in adults and children
Kongite

Compositions of 25 specimens of kongite
clr2ilr

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

Heuristics to find subpopulations of outliers
compositions-package

tools:::Rd_package_title("compositions")
Aar

Composition of glaciar sediments from the Aar massif (Switzerland)
cor.acomp

Correlations of amounts and compositions
CompLinModCoReg

Compositional Linear Model of Coregionalisation
Activity10

Activity patterns of a statistician for 20 days
Glacial

Compositions and total pebble counts of 92 glacial tills
ClamWest

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

Firework mixtures
ShiftOperators

Shifts of machine operators
ClamEast

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

Helper to compute confidence ellipsoids
groupparts

Group amounts of parts
gsi.PrinBal

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

Internal functions: Parallel operations of single and multiple datasets
PogoJump

Honk Kong Pogo-Jumps Championship
Supervisor

Proportions of supervisor's statements assigned to different categories
R2

R square
SimulatedAmounts

Simulated amount datasets
HouseholdExp

Household Expenditures
gsi.addclass

Internal function: give a derived subclass to an object
WhiteCells

White-cell composition of 30 blood samples by two different methods
gsi.isSingleRow

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

Treating binary and g-adic numbers
clr

Centered log ratio transform
amounts-class

Class "amounts"
Hydrochem

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

Closure of a composition
barplot.acomp

Bar charts of amounts
aplus-class

Class "aplus"
gausstest

Classical Gauss Test
acomp

Aitchison compositions
gsi.plain

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

Internal functions: Storing integers as reals
gsigetBalStruct

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

Internal functions of the compositions package
geometricmean

The geometric mean
apt

Additive planar transform
gsi.getD

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

Internal functions of the compositions package
ilr

Isometric log ratio transform
iit

Isometric identity transform
logratioVariogram

Empirical variograms for compositions
CoDaDendrogram

Dendrogram representation of acomp or rcomp objects
arrows3D

arrows in 3D, based on package rgl
gsiplotmargin

Internal functions of the compositions package
biplot3D

Three-dimensional biplots, based on package rgl
acomparith

Power transform in the simplex
balance

Compute balances for a compositional dataset.
coloredBiplot

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

Automatic common backtransformation for compositions
lrvgram

vgram2lrvgram
endmemberCoordinates

Recast amounts as mixtures of end-members
ipt

Isometric planar transform
ellipses

Draw ellipses
Activity31

Activity patterns of a statistician for 20 days
meanrow

The arithmetic mean of rows or columns
outlierclassifier

Detect and classify compositional outliers.
is.acomp

Check for compositional data type
missingProjector

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

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

Internal functions: Generate a diagonal matrix
AnimalVegetation

Animal and vegetation measurement
outlierplot

Plot various graphics to analyse outliers.
plotmissingsummary

Plot a Missing Summary
gsi.margin

Internal function: Compute a desired compositional margin
Skulls

Measurement of skulls
SkyeAFM

AFM compositions of 23 aphyric Skye lavas
outliersInCompositions

Analysing outliers in compositions.
colorsForOutliers

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

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

Displaying compositions and amounts with box-plots
gsiinternal2

Internal functions of the compositions package
gsi.merge2signary

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

Principal component analysis for amounts in log geometry
gsipairs

Internal functions of the compositions package
alr

Additive log ratio transform
acompmargin

Marginal compositions in Aitchison Compositions
aplus

Amounts analysed in log-scale
getdetectionlimit

Gets the detection limit stored in the data set
compOKriging

Compositional Ordinary Kriging
kdeDirichlet

Density estimation on the simplex with Dirichlet kernel
jura

The jura dataset
plot3Drplus

plot in 3D based on rgl
transformations from 'mixtures' to 'compositions' classes

Transformations from 'mixtures' to 'compositions' classes
missingsummary

Classify and summarize missing values in a dataset
gof

Compositional Goodness of fit test
plot.aplus

Displaying amounts in scatterplots
gsi.drop

Internal functions: A conditional drop
rcomp

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

Empirical variograms for compositions
aplusarithm

vectorial arithmetic for data sets with aplus class
ccompgof

Compositional Goodness of fit test
cdt

Centered default transform
rDirichlet

Dirichlet distribution
Boxite

Compositions and depth of 25 specimens of boxite
Hongite

Compositions of 25 specimens of hongite
Blood23

Blood samples
cpt

Centered planar transform
rcomparithm

Arithmetic operations for compositions in a real geometry
rAitchison

Aitchison Distribution
rplus

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

vectorial arithmetic for data sets with rplus class
summary.rcomp

Summary of compositions in real geometry
dist

Distances in variouse approaches
runif

The uniform distribution on the simplex
simulatemissings

Artifical simulation of various kinds of missings/polluted data
rpois

Simulate count compositions without overdispersion
split

Splitting datasets in groups given by factors
HotellingsTsq

Hotellings T square distribution
varmlm

Residual variance of a model
gsiinternal

Environment containing the old gsi functions
gsi2.invperm

Internal function: Invert a permutation
gsi.eq

Internal function: Checking equality of IEEE special numbers
sumprojector

Compute the global projector to the observed subspace.
fitSameMeanDifferentVarianceModel

Fit Same Mean Different Variance Model
fitdirichlet

Fitting a Dirichlet distribution
idt

Isometric default transform
gsi.svdsolve

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

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

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

Proportions of sand, silt and clay in sediments specimens
ternaryAxis

Axis for ternary diagrams
NormalTests

Compositional Goodness of fit test
SerumProtein

Serum Protein compositions of blood samples
princomp.rcomp

Principal component analysis for real compositions
gsifiltercall

Calling from a function with the own parameters
gsiCoorInfo

Internal functions of the compositions package
gsi.csum

Internal function: row and column sums of matrices
zeroreplace

Zero-replacement routine
gsi.simshape

Internal function: Reshape an object to the shape type of another
gsi.expandrcomp

Internal function: Scaling rcomp
MahalanobisDist

Compute Mahalanobis distances based von robust Estimations
princomp.rmult

Principal component analysis for real data
ilrBase

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

Internal functions of the compositions package
ilt

Isometric log transform
ccomp-class

Class "ccomp"
axis3D

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

Yatquat fruit evaluation
ccomp

Count compositions
kingTetrahedron

Ploting composition into rotable tetrahedron
as.data.frame

Convert "compositions" classes to data frames or matrices
acomp-class

Class "acomp"
vgmFit

Compositional variogram model fitting
vcovAcomp

Variance covariance matrix of parameters in compositional regression
wrapped_functions

Standard R functions wrapped for compatibility
compositional-class

Class "compositional"
matmult

inner product for matrices and vectors
names

The names of the parts
IsMahalanobisOutlier

Checking for outliers
gsireset3D

Internal functions of the compositions package
missing.compositions

The policy of treatment of missing values in the "compositions" package
gsi.recode

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

Draws connected lines from point to point.
norm

Vector space norm
normalize

Normalize vectors to norm 1
plot3D

plot in 3D based on rgl
princomp.rplus

Principal component analysis for real amounts
rcompmargin

Marginal compositions in real geometry
Read standard data files

Reads a data file in a geoeas format
robustnessInCompositions

Handling robustness issues and outliers in compositions.
ratioLoadings

Loadings of relations of two amounts
plot3Dacomp

3D-plot of compositional data
rplus-class

Class "rplus"
segments

Draws straight lines from point to point.
simplemissingplot

Ternary diagrams
isoPortionLines

Isoportion- and Isoproportion-lines
acompscalarproduct

inner product for datasets with a vector space structure
pairs

Pairs plot method for compositions
oneOrDataset

Treating single compositions as one-row datasets
rcomp-class

Class "rcomp"
rmultmatmult

inner product for datasets with vector scale
rmult

Simple treatment of real vectors
rmultarithm

vectorial arithmetic for datasets in a classical vector scale
variation

Variation matrices of amounts and compositions
parametricMat

Unique parametrisations for matrices.
plot3Daplus

3D-plot of positive data
plot3Drmult

plot in 3D based on rgl
rnorm

Normal distributions on special spaces
straight

Draws straight lines.
mean.acomp

Mean amounts and mean compositions
mix.Read

Reads a data file in a mixR format
var.acomp

Variances and covariances of amounts and compositions
mvar

Metric summary statistics of real, amount or compositional data
subsetting

Subsetting of compositions
ult

Uncentered log transform
plot.acomp

Ternary diagrams
variograms

Variogram functions
perturbe

Perturbation of compositions
powerofpsdmatrix

power transform of a matrix
princomp.acomp

Principal component analysis for Aitchison compositions
print.acomp

Printing compositional data.
rMahalanobis

Compute distributions of empirical Mahalanobis distances based on simulations
rmult-class

Class "rmult"
qqnorm

Normal quantile plots for compositions and amounts
pwlrPlot

Plots of pairwise logratio against a covariable.
scalar

Parallel scalar products
pwlr

Pairwise log ratio transform
replot

Modify parameters of compositional plots.
scale

Normalizing datasets by centering and scaling
rlnorm

The multivariate lognormal distribution
summary.aplus

Summaries of amounts
summary.acomp

Summarizing a compositional dataset in terms of ratios
tryDebugger

Empirical variograms for compositions
totals

Total sum of amounts
Coxite

Compositions, depths and porosities of 25 specimens of coxite
ArcticLake

Artic lake sediment samples of different water depth