And here is a way to do it the other way around, the ggplot2 graphic file in the base graphic:
require(ggplot2) require(grid) plot(sin, -pi, 2*pi) qp <- qplot(mpg, wt, data=mtcars) print(qp, vp=viewport(.8, .75, .2, .2))

ROLO Oct 17 2018-11-17T00: 00Z
source share