Skip to content
Prev 170912 / 398506 Next

bitmap .tif in colors

Thanks Prof Ripley, now I understood.

tiff(filename = "volc.tif", width=600, height=400, compression =
"none", bg = "white", res = 300, pointsize=3)
par(mar=c(3,3,2,2), cex=1)
image(t(volcano)[ncol(volcano):1,], xaxt="n", yaxt="n")
axis(1, at=seq(0, 1, 0.1), cex.axis=0.8, tick=T)
axis(2, at=seq(0, 1, 0.1), cex.axis=0.8, tick=T)
dev.off()

Regards,
Lauri

2009/2/18 Prof Brian Ripley <ripley at stats.ox.ac.uk>: