Re: [R] transforming data frame for use with persp

2006-02-14 Thread Roger Bivand
On Mon, 13 Feb 2006, Denis Chabot wrote: Hi, This is probably documented, but I cannot find the right words or expression for a search. My attempts failed. I have a data frame of 3 vectors (x, y and z) and would like to transform this so that I could use persp. Presently I have

[R] transforming data frame for use with persp

2006-02-13 Thread Denis Chabot
Hi, This is probably documented, but I cannot find the right words or expression for a search. My attempts failed. I have a data frame of 3 vectors (x, y and z) and would like to transform this so that I could use persp. Presently I have y-level copies of each x level, and a z value for

Re: [R] transforming data frame for use with persp

2006-02-13 Thread roger koenker
a strategy for this that I use is just persp(interp(x,y,z)) where interp is from the Akima package, and x,y,z are all of the same length. url:www.econ.uiuc.edu/~rogerRoger Koenker email[EMAIL PROTECTED]Department of Economics vox: 217-333-4558