[R] persp plot increasing 'x' and 'y' values expected

Michael Dondrup michael.dondrup at cebitec.uni-bielefeld.de
Tue Apr 25 12:07:55 CEST 2006


Hi,
yes, your x and y are increasing but the (x,y) coordinates are not unique.
Looks like some measurements are redundant in your input.
Michael
> hello,
>
> i do the following in order to get an persp-plot
>
> x<-c(2,2,2,2,2,2,3,3,3,3)
> y<-c(41,41,83,83,124,166,208,208,208,208)
> z<-c(90366,90366,92240,92240,92240,96473,100995,100995,100995,100995)
> x<-data$x
> y<-data$y
> z<-matrix(data$z,length(y),length(x))
> 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?
>
> best regards
> andreas
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html




More information about the R-help mailing list