[R] Mirror axis on hist2d plot - how?

Ralf B ralf.bierig at gmail.com
Fri Jul 9 13:39:11 CEST 2010


The following code produces a heatmap based on normalized data. I
would like to mirror x and y axis for this plot. Any idea how to do
that?


require("gplots")
x <- rnorm(500)
y <- rnorm(500)
hist2d(x, y, freq=TRUE, nbins=50, col = c("white",heat.colors(256)))

Best,
Ralf



More information about the R-help mailing list