How might I go about having the following two plots layered on top of one another on the same plot?
Furthermore, I would like to have the y-axes units for the first plot on the left hand side of the plot and the y-axes units for the second plot on the right hand side. I would also like to have the x-axes placed on the top and bottom of the plot respectively.
ggplot(data=diamonds, aes(price)) + geom_density()
ggplot(diamonds, aes(y=price, x = clarity)) + geom_bar(stat="identity")