Skip to content
Prev 299135 / 398506 Next

help with filled.contour() -

Hello,

You can use .filled.contour (with initial dot) with par. I've tested it 
with one of the help page examples, reformulated to use the args of 
.filled.contour and it works.



x <- y <- seq(-4*pi, 4*pi, len = 100)
r <- sqrt(outer(x^2, y^2, "+"))
z <- cos(r^2)*exp(-r/(2*pi))
zlim <- range(z, finite=TRUE)
#
levels <- pretty(zlim, 20)
col <- heat.colors(20)
#
op <- par(mfrow=c(1, 2))
plot.new()
.filled.contour(x, y, z, levels = levels, col=col)
plot.new()
.filled.contour(x, y, z, levels = levels, col=col)
par(op)


Hope this helps,

Rui Barradas

Em 04-07-2012 09:39, Robert Douglas Kinley escreveu: