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

r
datavisualization

#1

Hello,

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?

Thanks.


#2

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

http://www.cookbook-r.com/Graphs/Bar_and_line_graphs_(ggplot2)/#bar-graphs