标签: R语言

17 篇文章

Rstudio
linguopeng.com:8787 100.75.29.54:8787 mamba create -n r4.2.2 -c conda-forge "r-base==4.2.2" -y mamba activate r4.2.2 mamba install r-tidyverse -y cp -rf /Users/guopenglin/mamb…
PCOA
#载入绘图所需的包 library(vegan) library(ape) library(ggplot2) library(ggrepel) #分组数较少、组内生物学重复较多 data <- read.csv("otu.txt", head=TRUE,sep="\t",row.names = 1) #载入分组文件 groups <- …
Aspera安装和配置
Aspera是一项突破性传输协议,充分利用现有的 WAN 基础设施和通用硬件,传输速度比 FTP 和 HTTP 快达数百倍。 mkdir ~/Biosofts cd ~/Biosofts wget https://download.asperasoft.com/download/sw/connect/3.6.2/aspera-connect-3.6…
相关性分析
library(psych) genedat <- read.table('index.txt', header = TRUE, sep = '\t') antidat <- read.table('meta.txt',header = TRUE, sep = '\t') res <- corr.test(genedat, ant…
微生物菌群CDA与RDA分析
# 首先要安装devtools包,仅需安装一次 install.packages("devtools") # 加载devtools包 library(devtools) # 下载ggvegan包 devtools::install_github("gavinsimpson/ggvegan") library(ggvegan) otu.tab <…
ggplot2绘制基因作用元件图
package.list=c("tidyverse","ggsci","ggh4x","aplot","RColorBrewer","ggpubr","cowplot","grid","ggplotify") for (package in package.list) { if (!require(package,character.only=T,…
spiralize常规的矩形图画成螺旋形
library(tidyverse) #install.packages("spiralize") library(spiralize) library(ComplexHeatmap) #devtools::install_github("jokergoo/ComplexHeatmap") library(cowplot) library(magi…
多组折线图+分层
gapminder<-read.csv("gapminder.csv",header = T) library(ggplot2) p <- ggplot(data = gapminder, mapping = aes( x = year, y = lifeExp, group = country)) p1<-p + geom_li…
NC火山图
#Kruse T, Benz C, Garvanska DH, Lindqvist R, Mihalic F, Coscia F, Inturi R, Sayadi A, Simonetti L, Nilsson E, Ali #M, Kliche J, Moliner Morro A, Mund A, Andersson E, McInerney…