Re: [Rd] Re: [R] Problem going back to a viewport with gridBase

2005-06-08 Thread Paul Murrell
Hi Gabor Grothendieck wrote: Thanks. Yet one other comment to consider when thinking about this. Even if its not possible or advisable to guarantee order, even without the hash= idea, it may be possible to guarantee that default names are generated in some order that can be used by getChildre

Re: [Rd] Re: [R] Problem going back to a viewport with gridBase

2005-06-07 Thread Gabor Grothendieck
Thanks. Yet one other comment to consider when thinking about this. Even if its not possible or advisable to guarantee order, even without the hash= idea, it may be possible to guarantee that default names are generated in some order that can be used by getChildren to ensure that it returns the c

Re: [Rd] Re: [R] Problem going back to a viewport with gridBase

2005-06-07 Thread Paul Murrell
Hi Gabor Grothendieck wrote: Here is the code once again. This time I have supplied two names methods and a getChildren.viewport function to encapsulate the corresponding grid internals. It would be easiest if grid provided these itself but in the absence of that this does encapsulate depen

Re: [Rd] Re: [R] Problem going back to a viewport with gridBase

2005-06-07 Thread Gabor Grothendieck
Just one additional item. Look at: ?new.env for an example of where this approach is used in R, noting the hash= argument. On 6/7/05, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > Yes, I understand that although such order is convenient for > the user as the significant reduction in code size

Re: [Rd] Re: [R] Problem going back to a viewport with gridBase

2005-06-07 Thread Gabor Grothendieck
Yes, I understand that although such order is convenient for the user as the significant reduction in code size here shows. I wonder if there might be some performance parameter (e.g. hash) to control it. If hash = TRUE then no guarantee is provided. Otherwise order is kept. On 6/7/05, Paul Mur

Re: [Rd] Re: [R] Problem going back to a viewport with gridBase

2005-06-07 Thread Gabor Grothendieck
Here is the code once again. This time I have supplied two names methods and a getChildren.viewport function to encapsulate the corresponding grid internals. It would be easiest if grid provided these itself but in the absence of that this does encapsulate dependencies on grid internals to a we

Re: [Rd] Re: [R] Problem going back to a viewport with gridBase

2005-06-07 Thread Paul Murrell
Hi Gabor Grothendieck wrote: On 6/7/05, Paul Murrell <[EMAIL PROTECTED]> wrote: Hi Gabor Grothendieck wrote: On 6/6/05, Paul Murrell <[EMAIL PROTECTED]> wrote: Hi Gabor Grothendieck wrote: On 6/2/05, Paul Murrell <[EMAIL PROTECTED]> wrote: Hi Thanks. I have mucked around i

Re: [Rd] Re: [R] Problem going back to a viewport with gridBase

2005-06-07 Thread Gabor Grothendieck
On 6/7/05, Paul Murrell <[EMAIL PROTECTED]> wrote: > Hi > > > Gabor Grothendieck wrote: > > On 6/6/05, Paul Murrell <[EMAIL PROTECTED]> wrote: > > > >>Hi > >> > >> > >>Gabor Grothendieck wrote: > >> > >>>On 6/2/05, Paul Murrell <[EMAIL PROTECTED]> wrote: > >>> > >>> > Hi > >>> > >>> > >>>Than

Re: [Rd] Re: [R] Problem going back to a viewport with gridBase

2005-06-07 Thread Paul Murrell
Hi Gabor Grothendieck wrote: On 6/6/05, Paul Murrell <[EMAIL PROTECTED]> wrote: Hi Gabor Grothendieck wrote: On 6/2/05, Paul Murrell <[EMAIL PROTECTED]> wrote: Hi Thanks. I have mucked around in vpTree structures and discovered its actually quite easy to specify children so I have

Re: [Rd] Re: [R] Problem going back to a viewport with gridBase

2005-06-06 Thread Gabor Grothendieck
On 6/6/05, Paul Murrell <[EMAIL PROTECTED]> wrote: > Hi > > > Gabor Grothendieck wrote: > > On 6/2/05, Paul Murrell <[EMAIL PROTECTED]> wrote: > > > >>Hi > > > > > > Thanks. I have mucked around in vpTree structures and discovered its > > actually quite easy to specify children so I have changed

Re: [Rd] Re: [R] Problem going back to a viewport with gridBase

2005-06-06 Thread Paul Murrell
Hi Gabor Grothendieck wrote: On 6/2/05, Paul Murrell <[EMAIL PROTECTED]> wrote: Hi Thanks. I have mucked around in vpTree structures and discovered its actually quite easy to specify children so I have changed my example so that instead of naming the children of 'layout' and then remember

Re: [Rd] Re: [R] Problem going back to a viewport with gridBase

2005-06-03 Thread Gabor Grothendieck
On 6/2/05, Paul Murrell <[EMAIL PROTECTED]> wrote: > Hi Thanks. I have mucked around in vpTree structures and discovered its actually quite easy to specify children so I have changed my example so that instead of naming the children of 'layout' and then remembering coordinates linked to the name

Re: [Rd] Re: [R] Problem going back to a viewport with gridBase

2005-06-02 Thread Gabor Grothendieck
On 6/1/05, Paul Murrell <[EMAIL PROTECTED]> wrote: > Hi > > > Gabor Grothendieck wrote: > > [moved from r-help to r-devel] > > > > On 5/31/05, Paul Murrell <[EMAIL PROTECTED]> wrote: > > > > > >>> # mm.row[j] gives the row in the layout of the jth cell > >>> # mm.col[j] gives the col in the l

Re: [Rd] Re: [R] Problem going back to a viewport with gridBase

2005-06-01 Thread Gabor Grothendieck
On 6/1/05, Paul Murrell <[EMAIL PROTECTED]> wrote: > Hi > > > Gabor Grothendieck wrote: > > [moved from r-help to r-devel] > > > > On 5/31/05, Paul Murrell <[EMAIL PROTECTED]> wrote: > > > > > >>> # mm.row[j] gives the row in the layout of the jth cell > >>> # mm.col[j] gives the col in the l

Re: [Rd] Re: [R] Problem going back to a viewport with gridBase

2005-06-01 Thread Paul Murrell
Hi Gabor Grothendieck wrote: [moved from r-help to r-devel] On 5/31/05, Paul Murrell <[EMAIL PROTECTED]> wrote: # mm.row[j] gives the row in the layout of the jth cell # mm.col[j] gives the col in the layout of the jth cell mm <- matrix(seq(nr*nc), nr, nc) mm.row <- c(row(mm)) mm.

[Rd] Re: [R] Problem going back to a viewport with gridBase

2005-05-31 Thread Gabor Grothendieck
[moved from r-help to r-devel] On 5/31/05, Paul Murrell <[EMAIL PROTECTED]> wrote: > ># mm.row[j] gives the row in the layout of the jth cell > ># mm.col[j] gives the col in the layout of the jth cell > >mm <- matrix(seq(nr*nc), nr, nc) > >mm.row <- c(row(mm)) > >mm.col <- c(c