lefse_barplot: Draw a bar plot using the lefse analysis results

Description Usage Arguments Value Author(s) Examples

View source: R/lefse_barplot.R

Description

Draw a bar plot using the lefse analysis results

Usage

1
lefse_barplot(data, size = 0.5, col = NULL, type = "npg")

Arguments

data

a data frame containing markers, grouping and LDA_value information

size

the width of bar

col

the col of bars, default value if NULL

type

the color type of gfun::scale_color_manual2

Value

a ggplot2 bar plot

Author(s)

Zhonghui Gai

Examples

1
2
3
4
5
6
library(gfun)
lefse.genus <- data.in("g_LDA.xlsx", rowname = F)
colnames(lefse.genus)[2] <- "group"
lefse.genus$markers <- factor(lefse.genus$markers, levels = lefse.genus$markers)
lefse.genus$group <- factor(lefse.genus$group, levels = c("HC", "A", "B"), labels = c("HC", "No-NAs", "TDF"))
lefse_barplot(data = lefse.genus) +  ggtheme::theme_size()

ZhonghuiGai/gglefse documentation built on Dec. 18, 2021, 8:28 p.m.