[R] Heatmap Colnames

Nils Korte 2040684K at student.gla.ac.uk
Wed Apr 6 01:58:52 CEST 2016


Hello,
please see below my code for a heatmap. Unfortunately my column names do not completely appear. Can you please send me the appropriate code to visualise them?
Many Thanks!
Nils


library(GMD)

dat<-data.frame(EntryA=as.numeric(c(4.24,3,1.66,1.28,1.2,-1.32,-1.88)), EntryB=as.numeric(c(4.16,4.82,-1.82,-3.02,0.99,1.1,-3.31)))

rownames(dat)=c("hsa-miR-200c","hsa-miR-520b","hsa-miR-199a-3p","mmu-miR-124a","hsa-miR-302a","hsa-miR-454","mmu-miR-137") 

colnames(dat)=c("24", "72")

heatmap.3(dat, srtCol=70)

ndat<-as.matrix(dat)

heatmap.3(ndat, Rowv=FALSE, Colv=FALSE)



More information about the R-help mailing list