服务热线
178 0020 3020
library(ggplot2)
library(plyr)
require(plyr)
require(reshape2)
require(scales)
data<- read.csv("2.csv",header = T)
data<-na.omit(data)
data$Name <- with(data, reorder(ID, CL))
data.m <- melt(data)
data.m
data.m <- ddply(data.m, .(variable), transform,lable= scale(value, center=T,scale=F) )
data.m
ggplot(data.m, aes(variable, Name)) + geom_tile(aes(fill = lable),colour = "white") + scale_fill_gradient(low = "green",high = "red",limits=c(-5,5))+ggtitle("R2-35")+xlab("")+ylab("miRNA ID")
附件