Re: [R] ggplot2-grid/viewport and PNG

2011-09-06 Thread Paul Hiemstra
On 09/05/2011 09:59 AM, ashz wrote: > Dear All, > > The following code save my graphs as pdf: > pdf("j:/mix.pdf", width = 18, height = 16) > grid.newpage() > pushViewport(viewport(layout = grid.layout(3,1))) > vplayout <- function(x, y) > viewport(layout.pos.row = x, layout.pos.col = y) >

[R] ggplot2-grid/viewport and PNG

2011-09-05 Thread ashz
Dear All, The following code save my graphs as pdf: pdf("j:/mix.pdf", width = 18, height = 16) grid.newpage() pushViewport(viewport(layout = grid.layout(3,1))) vplayout <- function(x, y) viewport(layout.pos.row = x, layout.pos.col = y) print(Aplot, vp = vplayout(1, 1)) print(Bplot, vp