coordinates | R Documentation |
Calculate the coordinates of a composition with respect a given basis
coordinates(X, basis = "ilr")
coord(..., basis = "ilr")
alr_c(X)
clr_c(X)
ilr_c(X)
olr_c(X)
X |
compositional dataset. Either a matrix, a data.frame or a vector |
basis |
basis used to calculate the coordinates. |
... |
components of the compositional data |
coordinates
function calculates the coordinates of a compositiona w.r.t. a given basis. 'basis' parameter is
used to set the basis, it can be either a matrix defining the log-contrasts in columns or a string defining some well-known
log-contrast: 'alr' 'clr', 'ilr', 'pw', 'pc', 'pb' and 'cdp', for the additive log-ratio, centered log-ratio, isometric log-ratio,
pairwise log-ratio, clr principal components, clr principal balances or default's CoDaPack balances respectively.
Coordinates of composition X
with respect the given basis
.
See functions ilr_basis
, alr_basis
,
clr_basis
, sbp_basis
to define different compositional basis.
See function composition
to obtain details on how to calculate
a compositions from given coordinates.
# Default ilr given by ilr_basis(5) is given
coordinates(1:5)
B = ilr_basis(5)
coordinates(1:5, B)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.