About faced and magrin plot

Hi, community
How could I draw facet plot and marginal plot at the same time? I found it have a little problem add marginal plot in every subplot after being faced? I mean facet plot first, and then add marginal plot. Just take the iris data in R as example is ok. Thank you!