[R] persp plot increasing 'x' and 'y' values expected
ehlers at math.ucalgary.ca
Tue Apr 25 12:17:02 CEST 2006
voodooochild at gmx.de wrote:
> i do the following in order to get an persp-plot
> persp(x,y,z, col="gray")
> but i always get the error message increasing 'x' and 'y' values
> expected, but i think my data values are already increasing, what is wrong?
I'm not sure what your data$x, data$y, data$z are (but I can guess).
Why do you think that your x is *increasing*? Is x[i+1] > x[i]?
Does diff(x) yield only positive values?
What kind of a perspective plot do you expect? You seem to have only
5 unique points.
> best regards
More information about the R-help