par(fig=c(0,1,0,1))
hist(rnorm(100))
par(mar=c(0,0,0,0),
fig=c(0.8,0.99,0.8,0.99), new=TRUE)
hist(runif(10))
par()$fig will create a new graphics window inside your current graphics window, with its extent defined where 0 is the left or bottom edge, and 1 is the right or top edge
par(fig=c(0,1,0,1))
hist(rnorm(100))
par(mar=c(0,0,0,0),
fig=c(0.8,0.99,0.8,0.99), new=TRUE)
hist(runif(10))
par()$fig will create a new graphics window inside your current graphics window, with its extent defined where 0 is the left or bottom edge, and 1 is the right or top edge