search for: n3594590

Displaying 1 result from an estimated 1 matches for "n3594590".

Did you mean: 1354590
2011 Jun 13
1
Heatmap in R and/or ggplot2
...a ggplot2 object to do this? I'm able to easily do this in Excel with pivot tables and conditional formatting so I'm including an image that is close to the output I want. I want to be able to customize what colors are used for different values of height. http://r.789695.n4.nabble.com/file/n3594590/heatmap.png Sample data included below. library(ggplot2) df <-structure(list(x = c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 5L, 5L, 5L, 5L, 5L, 5L, 5L, 5L, 5L, 5L, 6L, 6L,...