今天发现了一个超有用的R包
参考:比较TCGA正常组织与肿瘤组织表达量不能更方便 - 简书 (jianshu.com)
remotes::install_github("openbiox/XenaShiny")
library(UCSCXenaShiny)
直接调用函数
#使用小提琴图
vis_toil_TvsN(Gene = "TP53", Mode = "Violinplot", Show.P.value = F, Show.P.label = F)
#使用箱型图
vis_toil_TvsN(Gene = "TP53", Mode = "Boxplot", Show.P.value = F, Show.P.label = F)
#加上P值
vis_toil_TvsN(Gene = "TP53", Mode = "Violinplot", Show.P.value = T, Show.P.label = T)
#换个配色
vis_toil_TvsN(Gene = "TP53", Mode = "Violinplot", Show.P.value = T, Show.P.label = T,value = c("Red","Green"))
![](https://img.haomeiwen.com/i25205178/6498c81d1cc1c192.png)
![](https://img.haomeiwen.com/i25205178/7a3371b94afece8a.png)
![](https://img.haomeiwen.com/i25205178/de8a2afc407c137b.png)
![](https://img.haomeiwen.com/i25205178/4a454786ffe08fa5.png)
网友评论