We use cookies essential for this site to function well. Please click to help
us improve its usefulness with additional cookies. Learn about our use of cookies in our Privacy Policy.

I encountered a problem today while trying to plot two ggplots side by side.
I tried using the par command but it seemed to work only for base plotting package and not lattice and ggplot.

As per my knowledge its difficult to plot 2 ggplots in same page with out using any external package
I tried with â€ścowplotâ€ť package its worked for me
Plot_grid is the function in cowplot

I hope this solution might work for you
May be there are different ways but i used this method to plot
Please try like this and let me know it it works for you