Re: [R] contour persp

2010-02-09 Thread Peter Ehlers
Further to Uwe's answer: I suspect that you're not telling us the whole story (that's why it's so useful to have reproducible code). Try this: x - y - 1:3 z - outer(x, y) z[1,1] - 1/0 persp(x,y,z) which results in: Error in persp.default(x, y, z) : invalid 'z' limits So, are some your

Re: [R] contour persp

2010-02-08 Thread Uwe Ligges
On 07.02.2010 22:46, Andrew Wang wrote: I have this data set that both x y are ordered vectors of length 600 700 respectively; z is a 600 by 700 matrix whose entry z[i,j] is either a missing value (indicated by 'NaN') or a real number between 0 and 1. The contour function contour(x,y,z)

[R] contour persp

2010-02-07 Thread Andrew Wang
I have this data set that both x y are ordered vectors of length 600 700 respectively; z is a 600 by 700 matrix whose entry z[i,j] is either a missing value (indicated by 'NaN') or a real number between 0 and 1. The contour function contour(x,y,z) gives me a blank picture. I guess the