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

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to