plotSigBars: Add significance bars to a prism plot

Description Usage Arguments Note Author(s) See Also Examples

View source: R/prism.plots.R

Description

Add significance bars to a prism plot, corrected for multiple comparisons either using Tukey's HSD (parametric), or Dunn's correction for multiple comparison (non-parametric).

Usage

1
plotSigBars(formula, data, type = c("tukey", "dunn"))

Arguments

formula

a R formula object

data

a dataset containing the variables in formula

type

either "tukey" or "dunn" indicating which multiple comparison should be used

Note

This function should probably only be used when the number of groups is less than four, otherwise the number of pairwise comparisons becomes too large to display.

When p-values are adjusted using Dunn's multiple comparison, this function calls the kruskalmc function in the pgirmess package. To avoid having to load the entire package, the function was directly copied into the fifer package. references Patrick Giraudoux (2013). pgirmess: Data analysis in ecology. R package version 1.5.7. http://CRAN.R-project.org/package=pgirmess

Author(s)

Dustin Fife

See Also

boxplot, densityPlotR, prism.plots

Examples

1
2
prism.plots(Sepal.Length ~ Species, data = iris, centerfunc=mean)
plotSigBars(Sepal.Length ~ Species, data = iris, type="tukey")

dustinfife/fifer documentation built on Oct. 31, 2020, 3:36 p.m.