Learn R Programming

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

compositions (version 1.40-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

1.40-2

License

GPL (>= 2)

Last Published

June 14th, 2018

Functions in compositions (1.40-2)

Skulls

Measurement of skulls
CompLinModCoReg

Compositional Linear Model of Coregionalisation
Coxite

Compositions, depths and porosities of 25 specimens of coxite
SerumProtein

Serum Protein compositions of blood samples
HotellingsTsq

Hotellings T square distribution
apt

Additive planar transform
Hydrochem

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

Centered default transform
axis3D

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

Compositional Goodness of fit test
colorsForOutliers

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

arrows in 3D, based on package rgl
ShiftOperators

Shifts of machine operators
PogoJump

Honk Kong Pogo-Jumps Championship
compOKriging

Compositional Ordinary Kriging
SkyeAFM

AFM compositions of 23 aphyric Skye lavas
Metabolites

Steroid metabolite patterns in adults and children
HouseholdExp

Household Expenditures
aplus

Amounts analysed in log-scale
dist

Distances in variouse approaches
aplusarithm

vectorial arithmetic for data sets with aplus class
Supervisor

Proportions of supervisor's statements assigned to different categories
geometricmean

The geometric mean
binary

Treating binary and g-adic numbers
Sediments

Proportions of sand, silt and clay in sediments specimens
compositions-package

compositions
gsi.csum

Internal function: row and column sums of matrices
ellipses

Draw ellipses
R2

R square
biplot3D

Three-dimensional biplots, based on package rgl
WhiteCells

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

Aitchison compositions
missing.compositions

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

Environment containing the old gsi functions
Yatquat

Yatquat fruit evaluation
Kongite

Compositions of 25 specimens of kongite
gsi.diagExtract

Internal functions: Get the diagonal of a matrix
gsi2.invperm

Internal function: Invert a permutation
gsi.isSingleRow

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

Power transform in the simplex
getdetectionlimit

Gets the detection limit stored in the data set
balance

Compute balances for a compositional dataset.
boxplot

Displaying compositions and amounts with box-plots
gsi.mapin01

Internal functions: Storing integers as reals
clr2ilr

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

Isometric identity transform
barplot.acomp

Bar charts of amounts
gsi.addclass

Internal function: give a derived subclass to an object
lines

Draws connected lines from point to point.
ilr

Isometric log ratio transform
ccomp

Count compositions
coloredBiplot

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

Dendrogram representation of acomp or rcomp objects
clo

Closure of a composition
fitSameMeanDifferentVarianceModel

Fit Same Mean Different Variance Model
gausstest

Classical Gauss Test
ClusterFinder1

Heuristics to find subpopulations of outliers
logratioVariogram

Empirical variograms for compositions
gsi.add

Internal functions: Parallel operations of single and multiple datasets
gsi.drop

Internal functions: A conditional drop
gsiinternal2

Internal functions of the compositions package
gsi.diagGenerate

Internal functions: Generate a diagonal matrix
endmemberCoordinates

Recast amounts as mixtures of end-members
gsi.PrinBal

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

Internal functions of the compositions package
fitdirichlet

Fitting a Dirichlet distribution
ilrBase

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

Internal functions of the compositions package
gsi.expandrcomp

Internal function: Scaling rcomp
transformations from 'mixtures' to 'compositions' classes

Transformations from 'mixtures' to 'compositions' classes
mix.Read

Reads a data file in a mixR format
ilt

Isometric log transform
oneOrDataset

Treating single compositions as one-row datasets
jura

The jura dataset
gsifiltercall

Calling from a function with the own parameters
gsi.recode

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

Detect and classify compositional outliers.
plot3Drplus

plot in 3D based on rgl
plotlogratioVariogram

Empirical variograms for compositions
kingTetrahedron

Ploting composition into rotable tetrahedron
qqnorm

Normal quantile plots for compositions and amounts
missingProjector

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

Modify parameters of compositional plots.
rlnorm

The multivariate lognormal distribution
rpois

Simulate count compositions without overdispersion
clr

Centered log ratio transform
gsireset3D

Internal functions of the compositions package
gsiinternal1

Internal functions of the compositions package
cor.acomp

Correlations of amounts and compositions
gsi.simshape

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

Internal functions of the compositions package
missingsummary

Classify and summarize missing values in a dataset
gsiinternal3

Internal functions of the compositions package
rDirichlet

Dirichlet distribution
cpt

Centered planar transform
gof

Compositional Goodness of fit test
runif

The uniform distribution on the simplex
gsi.eq

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

Internal function: Compute a desired compositional margin
gsi.eps

Internal variable: Negligible differences
perturbe

Perturbation of compositions
gsi.merge2signary

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

vgram2lrvgram
MahalanobisDist

Compute Mahalanobis distances based von robust Estimations
summary.rcomp

Summary of compositions in real geometry
var.acomp

Variances and covariances of amounts and compositions
powerofpsdmatrix

power transform of a matrix
groupparts

Group amounts of parts
summary.aplus

Summaries of amounts
plot.acomp

Ternary diagrams
gsi.varwithlosts

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

Variation matrices of amounts and compositions
idt

Isometric default transform
mvar

Metric summary statistics of real, amount or compositional data
is.acomp

Check for compositional data type
ipt

Isometric planar transform
matmult

inner product for matrices and vectors
acompscalarproduct

inner product for datasets with a vector space structure
princomp.rmult

Principal component analysis for real data
gsigetBalStruct

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

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

Interal function: Get number of samples and number of parts in a compositional object
princomp.acomp

Principal component analysis for Aitchison compositions
rcompmargin

Marginal compositions in real geometry
names

The names of the parts
princomp.rplus

Principal component analysis for real amounts
Read standard data files

Reads a data file in a geoeas format
parametricMat

Unique parametrisations for matrices.
outlierplot

Plot various graphics to analyse outliers.
plot3Daplus

3D-plot of positive data
gsiplotmargin

Internal functions of the compositions package
rplus

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

plot in 3D based on rgl
gsi.plain

Internal function: Convert to plain vector or matrix
outliersInCompositions

Analysing outliers in compositions.
gsi.svdsolve

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

Internal function: A panel displaying a label only
print.acomp

Printing compositional data.
IsMahalanobisOutlier

Checking for outliers
rplusarithm

vectorial arithmetic for data sets with rplus class
plot3D

plot in 3D based on rgl
plot3Dacomp

3D-plot of compositional data
isoPortionLines

Isoportion- and Isoproportion-lines
pwlrPlot

Plots of pairwise logratio against a covariable.
princomp.aplus

Principal component analysis for amounts in log geometry
princomp.rcomp

Principal component analysis for real compositions
rmultarithm

vectorial arithmetic for datasets in a classical vector scale
rmult

Simple treatment of real vectors
rmultmatmult

inner product for datasets with vector scale
rMahalanobis

Compute distributions of empirical Mahalanobis distances based on simulations
segments

Draws straight lines from point to point.
scalar

Parallel scalar products
sumprojector

Compute the global projector to the observed subspace.
simulatemissings

Artifical simulation of various kinds of missings/polluted data
scale

Normalizing datasets by centering and scaling
ternaryAxis

Axis for ternary diagrams
mean.acomp

Mean amounts and mean compositions
simplemissingplot

Ternary diagrams
zeroreplace

Zero-replacement routine
variograms

Variogram functions
meanrow

The arithmetic mean of rows or columns
split

Splitting datasets in groups given by factors
straight

Draws straight lines.
varmlm

Residual variance of a model
summary.acomp

Summarizing a compositional dataset in terms of ratios
norm

Vector space norm
tryDebugger

Empirical variograms for compositions
plotmissingsummary

Plot a Missing Summary
plot.aplus

Displaying amounts in scatterplots
normalize

Normalize vectors to norm 1
ult

Uncentered log transform
rAitchison

Aitchison Distribution
rcomparithm

Arithmetic operations for compositions in a real geometry
rcomp

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

Loadings of relations of two amounts
rnorm

Normal distributions on special spaces
NormalTests

Compositional Goodness of fit test
robustnessInCompositions

Handling robustness issues and outliers in compositions.
totals

Total sum of amounts
vcovAcomp

Variance covariance matrix of parameters in compositional regression
vgmFit

Compositional variogram model fitting
Boxite

Compositions and depth of 25 specimens of boxite
AnimalVegetation

Animal and vegetation measurement
ArcticLake

Artic lake sediment samples of different water depth
Activity10

Activity patterns of a statistician for 20 days
Activity31

Activity patterns of a statistician for 20 days
Bayesite

Permeabilities of bayesite
ClamEast

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

Blood samples
DiagnosticProb

Diagnostic probabilities
Firework

Firework mixtures
Hongite

Compositions of 25 specimens of hongite
ClamWest

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

Compositions and total pebble counts of 92 glacial tills
ConfRadius

Helper to compute confidence ellipsoids
SimulatedAmounts

Simulated amount datasets
as.data.frame

Convert "compositions" classes to data frames
acompmargin

Marginal compositions in Aitchison Compositions
alr

Additive log ratio transform