Learn R Programming

PMCMRplus (version 1.9.3)

barPlot: Plotting PMCMR Objects

Description

Plots a bar-plot for objects of class "PMCMR".

Usage

barPlot(x, alpha = 0.05, ...)

Arguments

x

an object of class "PMCMR".

alpha

the selected alpha-level. Defaults to 0.05.

further arguments for method barplot.

Value

A barplot where the height of the bars corresponds to the arithmetic mean. The extend of the whiskers are \(\pm z_{(1-\alpha/2)} \times s_{\mathrm{E},i}\), where the latter denotes the standard error of the \(i\)th group. Symbolic letters are depicted on top of the bars, whereas different letters indicate significant differences between groups for the selected level of alpha.

Examples

Run this code
# NOT RUN {
## data set chickwts
ans <- tukeyTest(weight ~ feed, data = chickwts)
barPlot(ans)
# }

Run the code above in your browser using DataLab