par(mfrow=c(1,2)) plot(1:12, log = "y") plot(1:2, xaxs = "i")

However, when I try to make a tight side-by-side graph, the graphs are obtained separately:
# load the stud.recs dataset library(UsingR) par(mfrow=c(1,2)) densityplot(stud.recs$sat.v) densityplot(stud.recs$sat.m)
Why is par(mfrow=c(1,2)) not working for density plots?
source share