search for: colpal

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

2011 Aug 28
1
Help with levelplot color assignment in lattice
..., 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 0, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6, 1, 1, 1, 1, 1, 1, 1, 1, 3, 2, 2, 1, 1, 1, 1, 1, 1)) library(lattice) library(grDevices) # For the color palette colpal <- colorRampPalette(c("white","yellow","red")) colseq <- seq(0,9,by=1) levelplot(level~ x* y, data = data, as.table = TRUE, at = colseq, region = TRUE, col.regions = colpal(10), colorkey = list(at = cols...