服务热线
178 0020 3020
setwd("E:/bioinformatics/fanzhimin")
install.packages("plyr")
library(reshape2)
library(scales)
library(plyr)
library(ggplot2)
data1<-read.csv("R2-8.csv", header = TRUE)
data2=melt(data1,id.vars = c("ID"))
data3=ddply(data2,.(variable),transform,label=rescale(value))
ggplot(data3,aes(x=variable,y=ID))+geom_tile(aes(fill=label))+scale_fill_gradient(low="yellow",high="red")+xlab("Groups")+ylab("ID")+labs(title="R2-36")
附件