Re: [R] gridBase and new.page() / grid.newpage()

2008-08-10 Thread Paul Murrell
Hi Peter Cowan wrote: > Paul, > > The real case is a function where I'd want to allow end users to pass > an arbitrary plotting function to be a sub plot within a larger plot > (e.g. the code that does the density plots would actually be passed as > a parameter. I adapted my example to reflect

Re: [R] gridBase and new.page() / grid.newpage()

2008-08-10 Thread Paul Murrell
Hi Peter Cowan wrote: > Hello all, > > I'm trying to write a function using the gridBase package. I'd like > to push several base subplots to a larger plot constructed with grid. > However, I'm having trouble getting consistent results when running > the function when the plotting window (quart

Re: [R] gridBase and new.page() / grid.newpage()

2008-08-10 Thread Peter Cowan
Paul, The real case is a function where I'd want to allow end users to pass an arbitrary plotting function to be a sub plot within a larger plot (e.g. the code that does the density plots would actually be passed as a parameter. I adapted my example to reflect this. I expect most of my end user

[R] gridBase and new.page() / grid.newpage()

2008-08-07 Thread Peter Cowan
Hello all, I'm trying to write a function using the gridBase package. I'd like to push several base subplots to a larger plot constructed with grid. However, I'm having trouble getting consistent results when running the function when the plotting window (quartz) is closed, when it is left open a