xyz.coords {grDevices} | R Documentation |
Utility for obtaining consistent x, y and z coordinates and labels for three dimensional (3D) plots.
xyz.coords(x, y = NULL, z = NULL,
xlab = NULL, ylab = NULL, zlab = NULL,
log = NULL, recycle = FALSE, setLab = TRUE)
x, y, z |
the x, y and z coordinates of a set of points.
Both If the argument is a formula Alternatively two arguments |
xlab, ylab, zlab |
names for the x, y and z variables to be extracted. |
log |
character, |
recycle |
logical; if |
setLab |
logical indicating if the resulting |
A list with the components
x |
numeric (i.e., |
y |
numeric vector of the same length as |
z |
numeric vector of the same length as |
xlab |
|
ylab |
|
zlab |
|
Uwe Ligges and Martin Maechler
xy.coords
for 2D.
xyz.coords(data.frame(10*1:9, -4), y = NULL, z = NULL)
xyz.coords(1:5, stats::fft(1:5), z = NULL, xlab = "X", ylab = "Y")
y <- 2 * (x2 <- 10 + (x1 <- 1:10))
xyz.coords(y ~ x1 + x2, y = NULL, z = NULL)
xyz.coords(data.frame(x = -1:9, y = 2:12, z = 3:13), y = NULL, z = NULL,
log = "xy")
##> Warning message: 2 x values <= 0 omitted ...
## Suppress this specific warning:
suppressWarnings(xyz.coords(x = -1:9, y = 2:12, z = 3:13, log = "xy"),
classes = "log_le_0")