服务热线
178 0020 3020
No.8 heatmap
先开始作图时,发现了data <- read.csv("data.csv",header=T,row.names=1)运行结果中总是出现错误“ 'row.names'里不能有重复的名字”,经过查重,将重复数据去除后,就可以成功运行了
data <- read.csv("data.csv",header=T,row.names=1)
x <- as.matrix(data)
y <- matrix(as.numeric(x),nrow = nrow(x))
y = y[,-1]
y <- na.omit(y)
heatmap(y,Rowv=NA,col = cm.colors(256), scale = "row", margins = c(5,5),main="microRNA chips",xlab ="samples")
附件