Skip to content
Prev 106048 / 398506 Next

persp() problem

On 12/13/2006 6:19 AM, Michael Sun wrote:
This doesn't make sense for persp. It wants the x and y values to be 
increasing over their range, and looks best with equally spaced values.

You are more likely to want something like

testx <- seq(min(u1data), max(u1data), len=100)
testy <- seq(min(u2data), max(u2data), len=100)

If you want to plot points where you observed data, you can use
the trans3d function, as in the persp examples.

Duncan Murdoch