How to join two different graphs together side by side in R




I was trying to join two graphs together side by side like in the graph below? Join them at the side without spacing and the Y axes may have same or different labels for the graphs. I don’t want to do it using par() function. I want them to be joined together. What is a good way in R to do this?



This is a very handy site for beginners in R. Bookmark it. :smile: