展开

物种组成可视化

最后发布时间 : 2022-11-05 09:58:46 浏览量 :

堆叠柱状图Stackplot

SampleIDGroup
KO1KO
KO2KO
KO3KO
KO4KO
KO5KO
KO6KO

metadata

PhylumKO1KO2KO3KO4KO5KO6OE1OE2OE3OE4OE5OE6WT1WT2WT3WT4WT5WT6All
Proteobacteria65.951.662.46374.87057.548.25156.959.557.351.661.257.456.75757.853.9
Actinobacteria26.540.327.728.717.424.329.53634.229.13129.736.13032.534.534.83228.5
Bacteroidetes3.032.677.293.054.752.123.628.078.717.43.723.535.366.034.74.114.835.755
Firmicutes1.741.961.223.230.731.525.192.812.563.371.795.20.820.621.221.020.531.113.9
Chloroflexi1.852.430.631.381.561.21.643.031.71.882.121.934.760.991.872.042.012.13.7
Acidobacteria0.30.340.190.130.220.270.950.410.550.270.720.840.330.340.920.460.130.331.4

sum_p

suppressWarnings(suppressMessages(library(amplicon)))
suppressMessages(library(tidyverse))
library(RColorBrewer)
metadata = read.table("https://gitee.com/bioinfoFungi/amplicon/raw/master/data/metadata.txt", header=T, row.names=1, sep="\t", comment.char="", stringsAsFactors = F)
taxonomy = read.table("https://gitee.com/bioinfoFungi/amplicon/raw/master/results/tax/sum_p.txt", header=T, row.names=1, sep="\t", comment.char="", quote = "")
p = tax_stackplot(taxonomy, metadata, topN = 7, groupID = "Group", style = "group", sorted = "abundance")
p + scale_fill_brewer(palette = "Paired")

生信小木屋

弦/圈图circlize

suppressWarnings(suppressMessages(library(amplicon)))
metadata = read.table("https://gitee.com/bioinfoFungi/amplicon/raw/master/data/metadata.txt", header=T, row.names=1, sep="\t", comment.char="", stringsAsFactors = F)
taxonomy = read.table("https://gitee.com/bioinfoFungi/amplicon/raw/master/results/tax/sum_p.txt", header=T, row.names=1, sep="\t", comment.char="", quote = "")
tax_circlize(taxonomy, metadata, topN = 4, groupID = "Group")

生信小木屋

树图treemap