Dear List, I recently started using R and I have a simple question. I am running R (v. 2.12.1) and Rcmdr (v.1-6.3) on Mac (Snow Leopard). I am using a data set I used before for practicing ANOVA with R, so I know what the results should look like. I can get ANOVA table using both Rcmdr and GUI. However, I cannot make R prepare the ANOVA diagram (with boxplots, showing the data points, including the outliers) for the dataset. If I use Rcmdr (Models>Graphs) then I get some graphical representation for the ANOVA model I prepared in R (showing diagnostic plots, Q-Q plots, etc.). However, the real ANOVA diagram is not coming up. I tried using "plot" command in GUI but did not get what I wanted. I could not find an answer to this on-line or in my book. I apologize if this was covered recently in the mailing list, I just became a member. Thanks for all the help! -- BÜLENT [[alternative HTML version deleted]]
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:> Dear List, > > I recently started using R and I have a simple question. I am running R (v. > 2.12.1) and Rcmdr (v.1-6.3) on Mac (Snow Leopard). > > I am using a data set I used before for practicing ANOVA with R, so I know > what the results should look like. I can get ANOVA table using both Rcmdr > and GUI. However, I cannot make R prepare the ANOVA diagram (with boxplots, > showing the data points, including the outliers) for the dataset. If I use > Rcmdr (Models>Graphs) then I get some graphical representation for the ANOVA > model I prepared in R (showing diagnostic plots, Q-Q plots, etc.). However, > the real ANOVA diagram is not coming up. I tried using "plot" command in GUI > but did not get what I wanted. I could not find an answer to this on-line or > in my book. I apologize if this was covered recently in the mailing list, I > just became a member. > > Thanks for all the help! >-- Sarah Goslee http://www.functionaldiversity.org
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> -----Original Message----- > From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] > On Behalf Of Bulent Arikan > Sent: January-20-11 2:15 PM > To: r-help at r-project.org > Subject: [R] ANOVA plotting > > Dear List, > > I recently started using R and I have a simple question. I am running R > (v. > 2.12.1) and Rcmdr (v.1-6.3) on Mac (Snow Leopard). > > I am using a data set I used before for practicing ANOVA with R, so I > know what the results should look like. I can get ANOVA table using both > Rcmdr and GUI. However, I cannot make R prepare the ANOVA diagram (with > boxplots, showing the data points, including the outliers) for the > dataset. If I use Rcmdr (Models>Graphs) then I get some graphical > representation for the ANOVA model I prepared in R (showing diagnostic > plots, Q-Q plots, etc.). However, the real ANOVA diagram is not coming > up. I tried using "plot" command in GUI but did not get what I wanted. I > could not find an answer to this on-line or in my book. I apologize if > this was covered recently in the mailing list, I just became a member. > > Thanks for all the help! > > -- > B\LENT > > [[alternative HTML version deleted]]