plotdiff: plot differential results

Description Usage Arguments Value Author(s) Examples

View source: R/plot.R

Description

plot differential results

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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

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

guokai8/microbial documentation built on Nov. 10, 2021, 1:43 a.m.