Displaying 2 results from an estimated 2 matches for "colorfun".
Did you mean:
colorful
2009 Jan 26
2
heatmap with levelplot
...in threshold (above = "green",
below = "blue")
Example matrix (there should be a few outliers generated...) + simple levelplot
without outliers marked:
library(lattice)
my.mat <- matrix(rnorm(800), nrow = 40)
threshold <- c(-1,1) # should be used for the extreme colors
colorFun <- colorRampPalette(c("yellow","red"))
levelplot(my.mat, col.regions = colorFun(50))
I don't know how to handle the extrem values...
Can anybody help?
Antje
2009 May 02
1
lattice levelplot axis + custom annotations
...have a 200 x 1000 element levelplot. Along the y-axis
(along the 1000-element axis) I would like to add annotations on the
left side of the levelplot at elements 120, 300, 500, and 805, which
represent clusters of interest.
Currently I have no annotations in my "scales" property:
colorFun <- colorRampPalette(c("white","black"))
myLevelplot <- levelplot(
t(scale(set.allElements))[,myLevelplot.dendrogram.order],
scales=list(y=list(draw=F),x=list(draw=F)),
colorkey=F, col.regions=colorFun, aspect="iso",
xlab="", ylab="", main=...