Skip to content
Prev 262906 / 398502 Next

Placing Text on ggplot2 graphics vs. xyplot

Hi,

As far as I know secondary y-axis and multiple pages are not possible
in ggplot2 (there are workarounds for the latter in the ggplot2 list
archives). For the subtitle, you could implement it with grid.text and
grid viewports,

library(gridExtra)
library(ggplot2)

grid.arrange( qplot(1,1), sub = textGrob(expression("this is my subtitle"),
    gp = gpar(fontsize = 8, fontface = "plain")))

HTH,

baptiste
On 17 June 2011 09:04, Guy Jett <GJett at itsi.com> wrote: