转录组分析-上下调基因条形图

setwd("Desktop/transcriptom")

library(ggplot2)
kob <- read.csv("count - up and down regulated genes.csv",header = T)
kobpos <- kobDEgenes_count >= 0
kobcomparison <- factor(kobcomparison,levels = c("fir_ctr","fir_R_fir","sec_fir_R","sec_R_sec","four_sec_R",
"sec_fir","four_sec","four_fir",
"fir_R_ctr","sec_R_ctr","sec_R_fir_R"))
p <- ggplot(kob, aes(x = comparison, y = DEgenes_count, fill = pos))
p <- p + geom_bar(stat = "identity",
position = "identity",
colour = "ivory",
size = 0.1)
p <- p + scale_fill_manual(values = c("darkseagreen3", "gold3"),guide = FALSE)
p <- p + geom_text(aes(label= DEgenes_count),
vjust=0.5,
color="grey32",
size=4.5)
p <- p + theme( axis.text.x = element_text(size = 10.5), axis.text.y = element_text(size = 15),axis.title.x =element_text(size=18), axis.title.y=element_text(size=18),legend.text= element_text(size=18))
p <- p + labs(x="comparison",y="DEGenes")
p

Rplot01.png
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • 这是16年5月份编辑的一份比较杂乱适合自己观看的学习记录文档,今天18年5月份再次想写文章,发现简书还为我保存起的...
    Jenaral阅读 3,111评论 2 9
  • mean to add the formatted="false" attribute?.[ 46% 47325/...
    ProZoom阅读 3,086评论 0 3
  • pyspark.sql模块 模块上下文 Spark SQL和DataFrames的重要类: pyspark.sql...
    mpro阅读 9,875评论 0 13
  • Data Visualization with D3 D3: SVG中的jQurey 1. Add Documen...
    王策北阅读 868评论 0 2
  • 有感:无意间从大博主-思考问题的熊学长那边看到这本书,激起了我的好奇心,索性自己找来一读,些许感想还是想分享在这边...
    ice_paprika阅读 144评论 0 1

友情链接更多精彩内容