lefserPlot: Plots results from 'lefser' function

View source: R/lefserPlot.R

lefserPlotR Documentation

Plots results from lefser function

Description

This function plots the biomarkers found by LEfSe, that are ranked according to their effect sizes and linked to their abundance in each class.

Usage

lefserPlot(
  df,
  colors = c("red", "forestgreen"),
  trim.names = TRUE,
  title = "",
  label.font.size = 3
)

Arguments

df

Data frame produced by lefser.

colors

A character(2). Colors corresponding to class 0 and 1. Defaults to c("red", "forestgreen").

trim.names

Under the default (TRUE), this function extracts the most specific taxonomic rank of organism.

title

A character(1). The title of the plot.

label.font.size

A numeric(1). The font size of the feature labels. The default is 3.

Value

Function returns plot of effect size scores produced by lefser. Positive scores represent the biomarker is more abundant in class '1'. Negative scores represent the biomarker is more abundant in class '0'.

Examples

example("lefser")
lefserPlot(res_group)


waldronlab/lefser documentation built on July 4, 2024, 2:39 p.m.