R: Displays a three-panel 'bwplot' of the data by group, of the...
OneWayVarPlot
R 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)
Results
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(HH)
Loading required package: lattice
Loading required package: grid
Loading required package: latticeExtra
Loading required package: RColorBrewer
Loading required package: multcomp
Loading required package: mvtnorm
Loading required package: survival
Loading required package: TH.data
Loading required package: MASS
Attaching package: 'TH.data'
The following object is masked from 'package:MASS':
geyser
Loading required package: gridExtra
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/HH/OneWayVarPlot.Rd_%03d_medium.png", width=480, height=480)
> ### Name: OneWayVarPlot
> ### Title: 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.
> ### Aliases: OneWayVarPlot
> ### Keywords: dplot
>
> ### ** Examples
>
> data(batch)
> OneWayVarPlot(Calcium ~ Batch, data = batch)
>
>
>
>
>
> dev.off()
null device
1
>