From deepayan at stat.wisc.edu  Sat Jul 10 03:06:25 2004
From: deepayan at stat.wisc.edu (Deepayan Sarkar)
Date: Sat Jul 10 03:05:20 2004
Subject: [Rd] Reproducible Rterm crash. (PR#7072)
In-Reply-To: <20040709192845.EC9C0FC09@slim.kubism.ku.dk>
References: <20040709192845.EC9C0FC09@slim.kubism.ku.dk>
Message-ID: <200407092006.25359.deepayan@stat.wisc.edu>

On Friday 09 July 2004 14:28, rmh@temple.edu wrote:

I didn't get a crash (on Windows 2000) with XEmacs/ESS, so this is 
likely to be related to amount of memory.

> I repeated the exercise on Windows NT4 and the resize worked
> correctly. The graph itself was still empty.  This example works
> correctly on S-Plus and generates a series of wireplots of a rotated
> bivariate normal density.

There are a couple of issues here. panel.wireframe() has a very 
different argument list in S-PLUS and lattice, and even though the ones 
you have used are common to both, the sequence is different. Using 
named arguments should fix this, i.e., use 

        panel = function(x, y, subscripts, z, angle, ...)
        {
          w <- unique(angle[subscripts])
-         panel.wireframe(x, y, subscripts, z,
+         panel.wireframe(x = x, y = y, subscripts = subscripts, z = z,
                          screen = list(z = w, x = -60, y = 0), ...)
        },

This will give you non-empty panels, but not different angles of 
rotation. This is because panel.wireframe doesn't handle screen, the 
top-level function (wireframe) does. There's no good reason for this 
behavior, so I'll fix it. But since this would be an API change, I 
don't think I should do it in a stable update. I can send you a patched 
version privately if you wish.

Deepayan


[Rd] Reproducible Rterm crash. (PR#7072)
Deepayan Sarkar