Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ErrorBarPlotPanel

Plots a panel of error bars


Description

Plots a panel of error bars to compare the means of several variables in the levels of a factor using confidence intervals.

Usage

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, ...)

Arguments

X

A matrix containing several variables

groups

A factor defining groups of individuals

nrows

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 plot

Confidence

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 groups

Title

Title of the graph

sort

Should short the means before plotting

...

Other graphical parameters

Details

The funtion plots a panel of error bars plots to compare several groups for several variables.

Value

A panel of error bars plots.

Author(s)

Jose Luis Vicente Villardon

Examples

ErrorBarPlotPanel(wine[4:9], wine$Group, UseANOVA=TRUE, Title="", sort=FALSE)

MultBiplotR

Multivariate Analysis Using Biplots in R

v1.3.30
GPL (>= 2)
Authors
Jose Luis Vicente-Villardon
Initial release
2021-03-30

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.