服务热线
178 0020 3020
>library(ggplot2)
>library(reshape2)
>library(scales)
>mydata<-
+read.csv(file.choose("F:/R语言学习/2"))
>mydata1<-melt(mydata,id.vars("ID"))
>mydata2<-ddply(mydata1,.(variable),transform,label=rescale(value))
>ggplot(mydata2,aes(x=variable,y=ID))+geom_title(aes(fill=label))+scale_fill_gradient(low="blue",high="red")+xlab("Groups")+theme_bw()+ggtitle("R2-16")
附件