Skip to content
Prev 259040 / 398502 Next

perspective plot

The persp function expects z to be a matrix, so you could reshape your data so that z is a matrix (the reshape function or package may help).  Or the wireframe function in the lattice package expects data more like what you show, that may be the easiest solution.