R2-04 第八次作业 热图

blanking 2017-12-26 21:39:04 阅读: 1277

library(reshape2)

library(scales)

library(plyr)

library(ggplot2)

R2_04_8 <- read.csv("/users/taowang/documents/R/R2/R2-8/2.csv",header = T)

R2_04_8 <- melt(R2_04_8,id.vars=c("ID"))

R2_04_8 <- ddply(R2_04_8, .(variable), transform,lable= scale(value, center=T,scale=F) )

ggplot(R2_04_8, aes(x= variable, y = ID))+

geom_tile(aes(fill=lable))+

scale_fill_gradient(low = "green", high = "red")+

xlab("Groups")+

ylab("miRNA ID")+

ggtitle("R2-04")Rplot.png

 
邀请讨论

附件

{{f.title}} 大小 {{f.file_size}} 下载 {{f.count_download}} 金币 {{f.count_gold}}
{{item.nick_name}} 受邀请回答 {{item.create_time}}
{{item.refer_comment.nick_name}} {{item.refer_comment.create_time}}

附件

{{f.title}} 大小 {{f.file_size}} 下载 {{f.count_download}} 金币 {{f.count_gold}}
切换到完整回复 发送回复
赞({{item.count_zan}}) 踩({{item.count_cai}}) 删除 回复 关闭
科研狗©2015-2025 科研好助手,京ICP备20005780号-1 建议意见

服务热线

178 0020 3020

微信服务号