ggboxplot.Let.Sig.dunTEST: A function for multiple group ggplot2 based boxplot using...

Description Usage Arguments Value Author(s) Examples

View source: R/ggboxplot.Let.Sig.dunnTEST.R

Description

A function for multiple group ggplot2 based boxplot using dunn.test

Usage

1
2
3
4
5
6
7
ggboxplot.Let.Sig.dunTEST(
  data,
  adjust = FALSE,
  set.levels = TRUE,
  letterMark = TRUE,
  unites = c("IS\n(g/L)", "PCS\n(g/L)", "TMAO\n(g/L)", "3AA\n(g/L)")
)

Arguments

data

the data frame containing the grouping information

adjust

adjust the p.value

set.levels

boolean value for facet title

letterMark

a boolean value to show LETTERS or not

unites

the new levels for facet title text, usually containing two lines

Value

a ggplot boxplot

Author(s)

Zhonghui Gai

Examples

1
2
3
4
5
6
data <- iris
colnames(data)[5] <- "group"
ggboxplot.Let.Sig.dunTEST(data = data, adjust = FALSE,
set.levels = TRUE, letterMark = TRUE,
unites = c("Sepal Length\n(g/L)", "Sepal Width\n(g/L)",
           "Petal Length\n(g/L)", "Petal Width\n(g/L)"))

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