I am plotting a heatmap using the hist2d function: require("gplots") x <- rnorm(2000) y <- rnorm(2000) hist2d(x, y, freq=TRUE, nbins=50, col = c("white",heat.colors(256))) However, I would like to flip the vertical y axis so that the upper left corner serves as the y-origin. How can I do that? Ralf