OneWayVarPlot: Displays a three-panel 'bwplot' of the data by group, of the...

View source: R/OneWayVarPlot.R

OneWayVarPlotR Documentation

Displays a three-panel bwplot of the data by group, of the group means, and of the entire dataset. This is an approximate visualization of the Mean Square lines from the ANOVA table for a one-way ANOVA model.

Description

Displays a three-panel bwplot of the data by group, of the group means, and of the entire dataset. This is an approximate visualization of the Mean Square lines from the ANOVA table for a one-way ANOVA model. The groups are centered using medians by default. Means, and anything else, is an option.

Usage

OneWayVarPlot(x, data, ...,
              main="Variability of Groups, Centers of Groups, and all Data",
              centerFunctionName="median",
              center=TRUE)

Arguments

x

Model formula with one response variable and one factor.

data

data.frame

...

Other arguments to be forwarded to the panel function.

main

main title for graph.

centerFunctionName

Name of centering function, with "median" as the default. "mean" is another option.

center

Logical. If TRUE, the default, the bwplots are centered by subtracting their center (by default the median). If FALSE the bwplots are plotted at their observed values.

Value

Three-panel trellis object.

Author(s)

Richard M. Heiberger <rmh@temple.edu>

Examples

data(batch)
OneWayVarPlot(Calcium ~ Batch, data = batch)

HH documentation built on May 29, 2024, 6:24 a.m.

Related to OneWayVarPlot in HH...