Re: [R] Simple Plot with Grid's Viewport

2009-03-19 Thread baptiste auguie
On 19 Mar 2009, at 07:22, Dieter Menne wrote: Gundala Viswanath gmail.com> writes: I have the following code that try to plot simple sinus curve into 2x2 grid in 1 page. But this code of mine create 4 plots in 1 page each. What's wrong with my approach? ... library(lattice) library(grid)

Re: [R] Simple Plot with Grid's Viewport

2009-03-19 Thread Dieter Menne
Gundala Viswanath gmail.com> writes: > I have the following code that try to plot > simple sinus curve into 2x2 grid in 1 page. > > But this code of mine create 4 plots in 1 page > each. What's wrong with my approach? ... > library(lattice) > library(grid) > > test.plot <- function(x,y) { > p

[R] Simple Plot with Grid's Viewport

2009-03-18 Thread Gundala Viswanath
Dear all, I have the following code that try to plot simple sinus curve into 2x2 grid in 1 page. But this code of mine create 4 plots in 1 page each. What's wrong with my approach? __BEGIN__ library(lattice) library(grid) test.plot <- function(x,y) { pushViewport(viewport(layout.pos.col=x, la