heatmap

heatmap 熱圖是一種有效的數據可視化方法,通常藉助矩陣數據間相關性做圖。app

 

exampleData <- matrix(log2(rexp(1000)/rexp(1000)),nrow=200)
evar <- apply(exampleData,1,var)
mostVariable <- exampleData[evar>quantile(evar,0.75),]
install.packages("gplots")
library(gplots)
heatmap.2(mostVariable,trace="none",col=greenred(10))
heatmap.2(mostVariable,trace="none",col=greenred(10),ColSideColors=bluered(5))
ord <- order(rowSums(abs(mostVariable)),decreasing=T)
heatmap.2(mostVariable[ord,],Rowv=F,dendrogram="column",trace="none",col=greenred(10))ide

相關文章
相關標籤/搜索