missing annotations and colors in pheatmap
问题 Using pheatmap R package, I need to make a heatmap with annotations of a custom color set. I use the following code: ### Make a matrix mat<-replicate(23, rnorm(23)) colnames(mat)<-c("1","2","3plus3reseq","4","5","6","7","8","D1","D2","D3","11","12","13","14","15","16","59","e7","e8","e9","17","18") rownames(mat)<-c("1","2","3plus3reseq","4","5","6","7","8","D1","D2","D3","11","12","13","14","15","16","59","e7","e8","e9","17","18") ### Define annotations colData_D<-data.frame(time=factor(x=c