[R] ggplot2-grid/viewport and PNG
    ashz 
    ashz at walla.co.il
       
    Mon Sep  5 11:59:33 CEST 2011
    
    
  
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 = vplayout(2, 1)) 
 print(Cplot, vp = vplayout(3, 1))
dev.off()
How can I save it in PNG and maintain the same graph structure?
Thanks
--
View this message in context: http://r.789695.n4.nabble.com/ggplot2-grid-viewport-and-PNG-tp3790866p3790866.html
Sent from the R help mailing list archive at Nabble.com.
    
    
More information about the R-help
mailing list