服务热线
178 0020 3020
library("ggplot2")
library("reshape2")
library("scales")
library("plyr")
mydata<-read.csv(file.choose(1))
data1<-melt(mydata,id.vars = c("ID"))
p<-ddply(data1,.(variable),transform,label=rescale(value))
ggplot(p,aes(x=variable,y=ID))+geom_tile(aes(fill=label))+scale_fill_gradient(low="red",high="purple")+xlab("Groups")+ylab("ID")+labs(title="R2-09")
附件