Plots cell means for a numeric variable in each category of a factor or in each
combination of categories of two factors, optionally along with error bars based
on cell standard errors or standard deviations.
Numeric variable for which means are to be computed.
factor1
Factor defining horizontal axis of the plot.
factor2
If present, factor defining profiles of means
error.bars
If "se", the default, error bars around means
give plus or minus one standard error of the mean; if "sd", error
bars give plus or minus one standard deviation; if "conf.int", error
bars give a confidence interval around each mean; if "none", error
bars are suppressed.
level
level of confidence for confidence intervals; default is .95
if (require(car)){
data(Moore)
with(Moore, plotMeans(conformity, fcategory, partner.status, ylim=c(0, 25)))
}
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(RcmdrMisc)
Loading required package: car
Loading required package: sandwich
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/RcmdrMisc/plotMeans.Rd_%03d_medium.png", width=480, height=480)
> ### Name: plotMeans
> ### Title: Plot Means for One or Two-Way Layout
> ### Aliases: plotMeans
> ### Keywords: hplot
>
> ### ** Examples
>
> if (require(car)){
+ data(Moore)
+ with(Moore, plotMeans(conformity, fcategory, partner.status, ylim=c(0, 25)))
+ }
>
>
>
>
>
> dev.off()
null device
1
>