今天发现了一个超有用的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"))