coordinates_ternary {isopleuros} | R Documentation |
Ternary Coordinates
Description
Computes ternary coordinates.
Usage
coordinates_ternary(x, y, z, ...)
## S4 method for signature 'numeric,numeric,numeric'
coordinates_ternary(
x,
y,
z,
center = FALSE,
scale = FALSE,
missing = getOption("isopleuros.missing")
)
## S4 method for signature 'ANY,missing,missing'
coordinates_ternary(
x,
xlab = NULL,
ylab = NULL,
zlab = NULL,
center = FALSE,
scale = FALSE,
missing = getOption("isopleuros.missing")
)
Arguments
x , y , z |
A |
... |
Currently not used. |
center |
|
scale |
A |
missing |
A |
xlab , ylab , zlab |
A |
Value
A list
with the components:
x | A numeric vector of x values. |
y | A numeric vector of y values. |
z | A numeric vector of z values. |
center | A numeric vector giving the center. |
scale | A numeric vector giving the scale factor. |
Author(s)
N. Frerebeau
See Also
Other coordinates:
coordinates_cartesian()
Examples
## Compositional data
coda <- data.frame(
x = c(1, 0, 0, 1/3),
y = c(0, 1, 0, 1/3),
z = c(0, 0, 1, 1/3)
)
## Ternary coordinates
(tern <- coordinates_ternary(coda))
## Cartesian coordinates
(cart <- coordinates_cartesian(tern))
[Package isopleuros version 1.2.0 Index]