lefserPlot {lefser}R Documentation

Plots results from 'lefser' function

Description

'lefserPlot' function displays effect sizes for differentially expressed microorganisms and whether they are more abundant in '0' or '1' sample group.

Usage

lefserPlot(df, colors = c("red", "forestgreen"), trim.names = TRUE)

Arguments

df

Data frame produced by 'lefser'.

colors

character(2) The two colors corresponding to class 0 and 1, respectively. Defaults to 'c("red", "forestgreen")'.

trim.names

If 'TRUE' extracts the most specific taxonomic rank of organism.

Value

Function returns plot of effect size scores produed by 'lefser'. Positive scores represent microorganisms with that are more abundant in class '1'. Negative scores represent microorganisms with that are more abundant in class '0'.

Examples

example("lefser")
lefserPlot(res_group)

[Package lefser version 1.2.0 Index]