AA <- mult.fig.p(5, main= "Sine functions of different frequencies")
x <- seq(0, 1, len = 201)
for (n in 1:5)
plot(x, sin(n * pi * x), ylab ="", main = paste("n = ",n))
par(AA$old.par)
rr <- mult.fig.p(mfrow=c(4,2), main= "Sine functions", cex = 1.5,
marP = - c(0, 1, 2, 0))
for (n in 1:8)
plot(x, sin(n * pi * x), type = 'l', col="red", ylab ="")
str(rr)
par(rr$old.par)
## Look at the par setting *AFTER* the above:
str(do.call("par", as.list(names(rr$new.par))))
Run the code above in your browser using DataLab