powered by
Plots a panel of error bars to compare the means of several variables in the levels of a factor using confidence intervals.
ErrorBarPlotPanel(X, groups = NULL, nrows = NULL, panel = TRUE, GroupsTogether = TRUE, Confidence = 0.95, p.adjust.method = "None", UseANOVA = FALSE, Colors = "blue", Title = "Error Bar Plot", sort = TRUE, ...)
A panel of error bars plots.
A matrix containing several variables
A factor defining groups of individuals
Number of rows of the panel. The function calculates the number of columns needed.
The plots are shown on a panel (TRUE) or in separated graphs (FALSE)
The groups appear together on the same plot
Confidence levels for the error bars (confidence intervals)
Method for adjusting the p-value to cope with multiple comparisons.
If TRUE the function uses the residual variance of the ANOVA to calculate the confidence interval. ("None", "Bonferroni" or "Sidak")
Colors to identyfy the groups
Title of the graph
Should short the means before plotting
Other graphical parameters
Jose Luis Vicente Villardon
The funtion plots a panel of error bars plots to compare several groups for several variables.
ErrorBarPlotPanel(wine[4:9], wine$Group, UseANOVA=TRUE, Title="", sort=FALSE)
Run the code above in your browser using DataLab