服务热线
178 0020 3020
R语言之热图
代码:
library('ggplot2')
data<-read.csv(file.choose())
print(data)
a<-as.matrix(data)
b=matrix(as.numeric(a),nrow=nrow(a))
b=b[,-1]
c<-na.omit(b)
col<-colorRampPalette(c('green','red'))(256)
heatmap(c,Rowv=NA,
scale='row',
margins=c(5,5),
main='microRNA chips',
sub='samples',
col=col )
附件