Plots a panel of error bars
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, ...)
X
: A matrix containing several variablesgroups
: A factor defining groups of individualsnrows
: Number of rows of the panel. The function calculates the number of columns needed.panel
: The plots are shown on a panel (TRUE) or in separated graphs (FALSE)GroupsTogether
: The groups appear together on the same plotConfidence
: Confidence levels for the error bars (confidence intervals)p.adjust.method
: Method for adjusting the p-value to cope with multiple comparisons.UseANOVA
: If TRUE the function uses the residual variance of the ANOVA to calculate the confidence interval. ("None", "Bonferroni" or "Sidak")Colors
: Colors to identyfy the groupsTitle
: Title of the graphsort
: Should short the means before plotting...
: Other graphical parametersThe funtion plots a panel of error bars plots to compare several groups for several variables.
A panel of error bars plots.
Jose Luis Vicente Villardon
ErrorBarPlotPanel(wine[4:9], wine$Group, UseANOVA=TRUE, Title="", sort=FALSE)
Useful links