Learn R Programming

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

compositions (version 1.01-1)

Compositional Data Analysis

Description

The package 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 Aitchison and Pawlowsky-Glahn.

Copy Link

Version

Install

install.packages('compositions')

Monthly Downloads

10,852

Version

1.01-1

License

GPL version 2 or newer

Maintainer

K Gerald van den Boogaart

Last Published

February 1st, 2024

Functions in compositions (1.01-1)

gsi.varwithlosts

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

Internal functions of the compositions package
names

The names of the parts
rplus

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

Diagnostic probabilities
rmultarithm

vectorial arithmetic for datasets in a classical vector scale
SerumProtein

Serum Protein compositions of blood samples
balance

Compute balances for a compositional dataset.
Activity31

Activity patterns of a statistician for 20 days
Hongite

Compositions of 25 specimens of hongite
gsi.expandrcomp

Internal function: Scaling rcomp
arrows3D

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

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

Closure of a composition
apt

Additive planar transform
axis3D

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

Centered planar transform
gsi.drop

Internal functions: A conditional drop
ClusterFinder1

Heuristics to find subpopulations of outliers
Sediments

Proportions of sand, silt and clay in sediments specimens
cdt

Centered default transform
CoDaDendrogram

Dendrogram representation of acomp or rcomp objects
transformations from 'mixtures' to 'compositions' classes

Transformations from 'mixtures' to 'compositions' classes
gsiCoorInfo

Internal functions of the compositions package
gsiinternal

Environment containing the the old gsi functions
WhiteCells

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

Recast amounts as mixtures of end-members
gsi.eps

Internal variable: Negligible differences
gsi.mapin01

Internal functions: Storing integers as reals
gsi.diagExtract

Internal functions: Get the diagonal of a matrix
ellipses

Draw ellipses
gsi.addclass

Internal function: give a derived subclass to an object
norm

Vector space norm
gsi.plain

Internal function: Convert to plain vector or matrix
rplusarithm

vectorial arithmetic for data sets with rplus class
getdetectionlimit

Gets the detection limit stored in the data set
ipt

Isometric planar transform
princomp.aplus

Principal component analysis for amounts in log geometry
rMahalanobis

Compute distributions of empirical Mahalanobis distances based on simulations
gsiinternal2

Internal functions of the compositions package
gsi.diagGenerate

Internal functions: Generate a diagonal matrix
Coxite

Compositions, depths and porosities of 25 specimens of coxite
Activity10

Activity patterns of a statistician for 20 days
dist

Distances in variouse approaches
var.acomp

Variances and covariances of amounts and compositions
princomp.rplus

Principal component analysis for real amounts
replot

Modify parameters of compositional plots.
Read standard data files

Reads a data file in a geoeas format
Boxite

Compositions and depth of 25 specimens of boxite
Blood23

Blood samples
SkyeAFM

AFM compositions of 23 aphyric Skye lavas
gsipairs

Internal functions of the compositions package
Hydrochem

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

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

Amounts analysed in log-scale
clr2ilr

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

Additive log ratio transform
gsicall

Internal functions of the compositions package
gsi.simshape

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

Normal distributions on special spaces
ClamWest

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

Shifts of machine operators
PogoJump

Honk Kong Pogo-Jumps Championship
Glacial

Compositions and total pebble counts of 92 glacial tills
gsiinternal3

Internal functions of the compositions package
ilt

Isometric log transform
outlierplot

Plot various graphics to analyse outliers.
acomparith

Power transform in the simplex
gsi2.invperm

Internal function: Invert a permutation
ternaryAxis

Axis for ternary diagrams
IsMahalanobisOutlier

Checking for outliers
Kongite

Compositions of 25 specimens of kongite
gsi.merge2signary

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

Measurement of skulls
gsi.add

Internal functions: Parallel operations of single and multiple datasets
matmult

inner product for matrices and vectors
outliersInCompositions

Analysing outliers in compositions.
scalar

Parallel scalar products
Supervisor

Proportions of supervisor's statements assigned to different categories
Firework

Firework mixtures
barplot.acomp

Bar charts of amounts
ilr

Isometric log ratio transform
ArcticLake

Artic lake sediment samples of different water depth
missingProjector

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

Internal function: row and column sums of matrices
princomp.acomp

Principal component analysis for Aitchison compositions
missing.compositions

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

Marginal compositions in Aitchison Compositions
Metabolites

Steroid metabolite patterns in adults and children
plot3D

3D-plot of positive data
simplemissingplot

Ternary diagrams
biplot3D

Three-dimensional biplots, based on package rgl
rcomp

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

Splitting datasets in groups given by factors
scale

Normalizing datasets by centering and scaling
gsigetBalStruct

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

Draws straight lines from point to point.
Yatquat

Yatquat fruit evaluation
mean.acomp

Mean amounts and mean compositions
gsi.textpanel

Internal function: A panel displaying a label only
powerofpsdmatrix

power transform of a matrix
plot3Drplus

plot in 3D based on rgl
SimulatedAmounts

Simulated amount datasets
acomp

Aitchison compositions
gsi.margin

Internal function: Compute a desired compositional margin
kingTetrahedron

Ploting composition into rotable tetrahedron
princomp.rcomp

Principal component analysis for real compositions
gsi.svdsolve

Internal function: Solves singular and non square equation systems
outlierclassifier

Detect and classify compositional outliers.
mix.Read

Reads a data file in a mixR format
cor.acomp

Correlations of amounts and compositions
gsiinternal1

Internal functions of the compositions package
is.acomp

Check for compositional data type
iit

Isometric identity transform
pairwiseplot

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

Summarizing a compositional dataset in terms of ratios
as.data.frame

Convert "compositions" classes to data frames
lines

Draws connected lines from point to point.
plot.acomp

Ternary diagrams
gsi.recode

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

Classify and summarize missing values in a dataset
summary.rcomp

Summary of compositions in real geometry
qqnorm

Normal quantile plots for compositions and amounts
MahalanobisDist

Compute Mahalanobis distances based von robust Estimations
plotmissingsummary

Plot a Missing Summary
rcompmargin

Marginal compositions in real geometry
AnimalVegetation

Animal and vegetation measurement
rlnorm

The multivariate lognormal distribution
boxplot

Displaying compositions and amounts with box-plots
oneOrDataset

Treating single compositions as one-row datasets
ilrBase

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

Simple treatment of real vectors
mvar

Metric summary statistics of real, amount or compositional data
straight

Draws straight lines.
acompscalarproduct

inner product for datasets with a vector space structure
rmultmatmult

inner product for datasets with vector scale
Bayesite

Permeabilities of bayesite
ratioLoadings

Loadings of relations of two amounts
aplusarithm

vectorial arithmetic for data sets with aplus class
gsi.eq

Internal function: Checking equality of IEEE special numbers
zeroreplace

Zero-replacement routine
normalize

Normalize vectors to norm 1
binary

Treating binary and g-adic numbers
robustnessInCompositions

Handling robustness issues and outliers in compositions.
print.acomp

Printing compositional data.
isoPortionLines

Isoportion- and Isoproportion-lines
meanrow

The arithmetic mean of rows or columns
plot3Drmult

plot in 3D based on rgl
summary.aplus

Summaries of amounts
plot.aplus

Displaying amounts in scatterplots
rcomparithm

Arithmetic operations for compositions in a real geometry
princomp.rmult

Principal component analysis for real data
HouseholdExp

Household Expenditures
rDirichlet

Dirichlet distribution
simulatemissings

Artifical simulation of various kinds of missings
totals

Total sum of amounts
variation

Variation matrices of amounts and compositions
clr

Centered log ratio transform
gsifiltercall

Calling from a function with the own parameters
ult

Uncentered log transform
coloredBiplot

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

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

Perturbation of compositions
runif

The uniform distribution on the simplex
geometricmean

The geometric mean
compositions-package

library(compositions)
groupparts

Group amounts of parts
gsi.getD

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

Isometric default transform
sumprojector

Compute the global projector to the observed subspace.