Description Usage Arguments Note Author(s) See Also Examples
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).
1 | plotSigBars(formula, data, type = c("tukey", "dunn"))
|
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 |
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
Dustin Fife
boxplot
, densityPlotR
, prism.plots
1 2 | prism.plots(Sepal.Length ~ Species, data = iris, centerfunc=mean)
plotSigBars(Sepal.Length ~ Species, data = iris, type="tukey")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.