Skip to content
Prev 299107 / 398506 Next

help with filled.contour() -

On Jul 3, 2012, at 9:01 PM, Jonathan Hughes wrote:

            
This is the code in filled.contour that is overriding you par() efforts.

mar.orig <- (par.orig <- par(c("mar", "las", "mfrow")))$mar
     on.exit(par(par.orig))
     w <- (3 + mar.orig[2L]) * par("csi") * 2.54
     layout(matrix(c(2, 1), ncol = 2L), widths = c(1, lcm(w)))
     par(las = las)
     mar <- mar.orig
     mar[4L] <- mar[2L]
     mar[2L] <- 1
     par(mar = mar)
     plot.new()

You could rewrite the function to allocate space differently.

Note this portion of the layout help page:

"These functions are totally incompatible with the other mechanisms  
for arranging plots on a device: par(mfrow),par(mfcol) and  
split.screen."