plots generated by ‘plot’ and ‘ggplot’ side-by-side

You can do this using the gridBase package and viewPorts. library(grid) library(gridBase) library(ggplot2) # start new page plot.new() # setup layout gl <- grid.layout(nrow=1, ncol=2) # grid.show.layout(gl) # setup viewports vp.1 <- viewport(layout.pos.col=1, layout.pos.row=1) vp.2 <- viewport(layout.pos.col=2, layout.pos.row=1) # init layout pushViewport(viewport(layout=gl)) # access the first position pushViewport(vp.1) # start new base graphics in first … Read more