This is a levelplot using the lattice package. Each square represents a value in a matrix. It can be really usefull to represent geographical for exemple.
By default, the Y axis as the highest values on the top of the graph. There is a little tip to turn the Y axis upside down
1 2 3 4 5 6 7 8 9 10 11 |
library("lattice") ## Example data data=matrix(runif(100, 0, 5) , 10 , 10) colnames(data)=letters[c(1:10)] rownames(data)=paste( rep("row",10) , c(1:10) , sep=" ") ## Try it out par(mar=c(3,4,2,2)) levelplot(t(data[c(nrow(data):1) , ])) |
Not what you are looking for ? Make a new search !
[mediatagger]
Leave a Reply