devtools::install_github( repo = "IndrajeetPatil/ggstatsplot", # package path on GitHub dependencies = TRUE, # installs packages which ggstatsplot depends on upgrade_dependencies = TRUE # updates any out of date dependencies )
用某个基因在乳腺癌中突变类型和mRNA表达关系做了一个图,比较漂亮
1 2 3 4 5 6 7
getwd() a = read.table('plot.txt',header = TRUE, sep = '\t', fill=T) tail(a) colnames(a)=c('ID','Alternations','mRNA_expression','Mutations') dat = a library(ggstatsplot) ggbetweenstats(data=dat, x=Alternations, y=mRNA_expression)