[R] Heatmap without levelplot
ligges at statistik.tu-dortmund.de
Tue May 5 13:57:26 CEST 2009
> Hi there,
> as I'm not sure to understand the coloring levelplot uses, I'm looking
> for another easy way to create a heatmap like this:
> mat <- matrix(seq(1,5, length.out = 12), nrow = 3)
> mat[1,2] <- 3.5
> my.at <- seq(0.5,5.5, length.out = 6)
> my.col.regions <- rainbow(5)
> graph <- levelplot(t(mat[nrow(mat):1, ] ), at = my.at, col.regions =
> Can anybody help me with some hints or little examples?
since you are asking the same question again now, maybe you can explain
what you are going to get? In fact, I do not undertsand where your
problem is. R places the colors according to the values in your matrix
very well including the legend and I thought up to today that the plot
is self explaining.
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help