Re: [R] how to plot two surfaces with lattice::wireframe

2011-10-15 Thread Carl Witthoft
Thank you! That bit about "Re(z) + Im(z)" was what I missed. Carl On 10/15/11 12:00 PM, Deepayan Sarkar wrote: On Fri, Oct 14, 2011 at 3:07 AM, Carl Witthoft wrote: Hi all, I'd like to plot the Real and Imaginary parts of some f(z) as two different surfaces in wireframe (the row/column axes

Re: [R] how to plot two surfaces with lattice::wireframe

2011-10-15 Thread Deepayan Sarkar
On Fri, Oct 14, 2011 at 3:07 AM, Carl Witthoft wrote: > Hi all, > I'd like to plot the Real and Imaginary parts of some f(z) as two different > surfaces in wireframe (the row/column axes are the real and imag axes).  I > know I can do it by, roughly speaking, something like > > plotz <- expand.gri

Re: [R] how to plot two surfaces with lattice::wireframe

2011-10-14 Thread Carl Witthoft
No, the point of my question is how to plot the Re and Im parts as two separate surfaces in one chart. On 10/14/11 5:46 AM, Eik Vettorazzi wrote: Hi Carl, I have no idea what z or f(z) are, but maybe outer will help you: wireframe(outer(seq(0,5,length.out=50),seq(2,4,length.out=40),function(x,

Re: [R] how to plot two surfaces with lattice::wireframe

2011-10-14 Thread Eik Vettorazzi
Hi Carl, I have no idea what z or f(z) are, but maybe outer will help you: wireframe(outer(seq(0,5,length.out=50),seq(2,4,length.out=40),function(x,y)sin(x*y))) cheers. Am 13.10.2011 23:37, schrieb Carl Witthoft: > Hi all, > I'd like to plot the Real and Imaginary parts of some f(z) as two > dif

[R] how to plot two surfaces with lattice::wireframe

2011-10-13 Thread Carl Witthoft
Hi all, I'd like to plot the Real and Imaginary parts of some f(z) as two different surfaces in wireframe (the row/column axes are the real and imag axes). I know I can do it by, roughly speaking, something like plotz <- expand.grid(x={range of Re(z)}, y={range of Im(z), groups=1:2) plotz$fun