b <- ggplot(cars,aes(x=speed,y=dist))+geom_line() grid.arrange( b, plot(cars), ncol=1 )
gives me the following error
you can try with gridGraphics
library(gridGraphics) grab_grob <- function(){ grid.echo() grid.grab() } plot(cars) g <- grab_grob() b <- ggplot(cars,aes(x=speed,y=dist))+geom_line() grid.arrange( b,g, ncol=1 )
or, alternatively, use gridBase.