Re: [R] Perspective Plot, and npreg

2012-04-04 Thread Duncan Murdoch
On 12-04-03 4:35 PM, dnewbold wrote: Hi, Im doing a simple non parametric regression using two variables(ie regressing one on the the other), how would I counstruct my persp plot for it with there only be two variables in total, . Any help would be much appreciated. You can't. persp() plots a

Re: [R] perspective plot

2011-05-05 Thread Greg Snow
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. -- Gregory (Greg) L. Snow Ph.D