Skip to content

ANOVA plotting

4 messages · Bulent Arikan, Sarah Goslee, Robert Baer +1 more

#
I'm not sure what a "real ANOVA diagram" is supposed to look like, nor
do I know what your data look like.

But this might get you started:
fakedata <- runif(100)
fakegroups <- sample(rep(letters[1:5], each=20))
boxplot(fakedata ~ fakegroups)

If that isn't what you're after, a clearer explanation with a
reproducible example
would help us help you.

Sarah
On Thu, Jan 20, 2011 at 2:15 PM, Bulent Arikan <bulent.arikan at gmail.com> wrote:

  
    
#
Note that it is possible to do any Rcmdr "menu operation" from the command 
line simply by typing the command line output that results from doing the 
menu operation in Rcmdr.  Observe the red text in the output window.  The 
Rcmdr package supplies not only the Menu driven window, but some functions 
to accomplish the operations of the Window.  Observe the red text in the 
output window.

Assuming you want an "interaction plot" for 2-factor ANOVA and following on 
from Sarah's example paste the following code at the command line.  Note 
that it makes use of the Rcmdr convenience function plotMeans() so you need 
the Rcmdr package loaded:

  library(Rcmdr)
  fakedata <- runif(100)
  fakegroups <- sample(rep(letters[1:5], each=20))
  factor2 = sample(rep(letters[1:2], each=50))
  plotMeans(df$data, df$groups, df$factor2, error.bars="se")

For more information on how to use this function from the command line see 
its help file by typing
?plotMeans


Hope you can generalize this if you were actually asking a different 
question.  See posting guide for best practices on providing a reproducible 
example of what you want to accomplish.

Rob
#
Dear Bulent,

It's not clear to me what you want to do, but the following may be relevant:
Graphs -> Plot of means; Graphs -> Boxplot; and, after fitting the model,
Models -> Graphs -> Effects plots.

I hope this helps,
 John