coordinates_cartesian {isopleuros} | R Documentation |
Cartesian Coordinates
Description
Computes cartesian coordinates.
Usage
coordinates_cartesian(x, y, ...)
## S4 method for signature 'numeric,numeric'
coordinates_cartesian(x, y)
## S4 method for signature 'ANY,missing'
coordinates_cartesian(x, xlab = NULL, ylab = NULL)
Arguments
x , y |
A |
... |
Currently not used. |
xlab , ylab |
A |
Value
A list
with the components:
x | A numeric vector of x coordinates. |
y | A numeric vector of y coordinates. |
z | A numeric vector of z coordinates. |
Author(s)
N. Frerebeau
See Also
Other coordinates:
coordinates_ternary()
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.3.0 Index]