Re: [R] Axis Labels for Compound Plots in ggplot2

2009-12-30 Thread baptiste auguie
Hi, You can set up a Grid layout with one viewport at the bottom and another on the left and use grid.text to add your labels. An example is given below using grid.pack. The gridExtra package provides a convenient wrapper for these regular arrangements of plots, ##library(gridExtra) #http://grid

[R] Axis Labels for Compound Plots in ggplot2

2009-12-30 Thread Lorenzo Isella
Dear All, I am trying to stitch together multiple plots using ggplot2 Consider for instance the following snippet based on an old thread (http://tinyurl.com/ylehm2t) library(ggplot2) vplayout <- function(x, y) viewport(layout.pos.row=x, layout.pos.col=y) draw4 <- function(pdfname, a,b,c,d,w,h) {