plotdiff: plot differential results

View source: R/plot.R

plotdiffR Documentation

plot differential results

Description

plot differential results

Usage

plotdiff(
  res,
  level = "Genus",
  color = NULL,
  pvalue = 0.05,
  padj = NULL,
  log2FC = 0,
  size = 3,
  fontsize.x = 5,
  fontsize.y = 10,
  horiz = TRUE
)

Arguments

res

differential test results from diff_test

level

the level to plot

color

A vector of character use specifying the color

pvalue

pvalue threshold for significant results

padj

adjust p value threshold for significant results

log2FC

log2 Fold Change threshold

size

size for the point

fontsize.x

the size of x axis label

fontsize.y

the size of y axis label

horiz

horizontal or not (TRUE/FALSE)

Value

ggplot object

Author(s)

Kai Guo

Examples

 
data("Physeq")
res <- difftest(physeq,group="group")
plotdiff(res,level="Genus",padj=0.001)


guokai8/microbial documentation built on Oct. 15, 2024, 11:32 p.m.