coordinates_ternary | R Documentation |
Computes ternary coordinates.
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")
)
x , y , z |
A |
... |
Currently not used. |
center |
A |
scale |
A |
missing |
A |
xlab , ylab , zlab |
A |
A list
with the components:
x | A numeric vector of x coordinates. |
y | A numeric vector of y coordinates. |
center | A numeric vector giving the center. |
scale | A numeric vector giving the scale factor. |
N. Frerebeau
Other coordinates:
coordinates_cartesian()
## 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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.