I've got a 3D dataset.
data.frame = data
(
x equals rep(c(0.1, 0.2, 0.3, 0.4, 0.5), each=5).
y = rep(c(1, 2, 3, 4, 5), 5)
)
runif( data$z
25,
min is equal to (0.1 * (data$x*data$y) - data$x*data$y),
maximum is equal to (data$x*data$y + 0.1 * (data$x*data$y)).
)
data
str(data)
I also want to plot it, however R's built-in functions always return an error.
rising "x" and "y" values are anticipated
# ### 3D Plots ######################################################
# Built-in functions consistently return an error
Increasing "x" and "y" values are anticipated.
demo(image)
image(x = $x$, y = $y$, and z = $z$)
demo(persp)
persp(data$x,data$y,data$z)
contour(data$x,data$y,data$z)
This notice appears when X and Y value combinations are not unique, according to a web search I did. However, they are special here.
I tried it with some other libraries, and it functions there without any issues. However, I dislike the default.