Learn R Programming

provenance (version 0.2)

clr: Centred logratio transformation

Description

Calculates Aitchison's centered logratio transformation for a dataset of class HMdata

Usage

clr(x, ...)

## S3 method for class 'HMdata': clr(x, ...)

Arguments

x
an object of class HMdata
...
optional arguments of the generic function

Value

  • a matrix of clr coordinates

Examples

Run this code
fname <- system.file("Major.csv",package="provenance")
Major <- read.HMdata(fname)
clrdat <- clr(Major)$x
diss <- dist(clrdat)
plot(getMDS(diss,classical=TRUE))

Run the code above in your browser using DataLab