Is there a way to put the plot generated by plot function and the plot by ggplot function in R in one page side-by-side?
It is easy to put plots created by the same function into one page using par or multiplot function, but I can’t figure out the above question.
You can do this using the
gridBasepackage and viewPorts.This example is a modified version of this blog post by Dylan Beaudette