8rino-Luca Pantani
2006-Sep-28 07:19 UTC
[R] I: differences between R and S (reproducing a plot from a book )
Dear R-Users, I'm currently studying the book Statistical model in S by Chambers J.M and Hastie T.J.. At page n 3 there's a plot showing the means of a variable at each of the levels of the factors of an experiment. I hope to be able to reproduce it here by ASCII art. B6 S | | Thin | | | | | | B3 __|_____|_____|__......etc | | | | | | M | | | Thick | L | | A3 | A1.5 Is told to be obtained by the (S) expression plot(dataframe.df) Using the same command in R, a different plot is obtained instead. It is a multlple xy plot where the values of each variable are plotted against the values of the others. Is there an equivalent command in R to obtain a plot similar to that showed above? Thanks for your time in reading this mine. Ottorino-Luca Pantani, Universit? di Firenze Dip. Scienza del Suolo e Nutrizione della Pianta
Chuck Cleland
2006-Sep-28 09:20 UTC
[R] I: differences between R and S (reproducing a plot from a book )
8rino-Luca Pantani wrote:> Dear R-Users, > I'm currently studying the book > Statistical model in S by Chambers J.M and Hastie T.J.. > > At page n 3 there's a plot showing the means of a variable at each of the > levels of the factors of an experiment. > I hope to be able to reproduce it here by ASCII art. > > B6 > S | > | Thin | > | | | > | | B3 > __|_____|_____|__......etc > | | | > | | | > M | | > | Thick | > L | > | > A3 > | > A1.5 > > Is told to be obtained by the (S) expression > > plot(dataframe.df) > > Using the same command in R, a different plot is obtained instead. > It is a multlple xy plot where the values of each variable are plotted > against > the values of the others. > > Is there an equivalent command in R to obtain a plot similar to that showed > above? > Thanks for your time in reading this mine.Have a look at plot.design().> Ottorino-Luca Pantani, Universit? di Firenze > Dip. Scienza del Suolo e Nutrizione della Pianta > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.-- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438-0894
Possibly Parallel Threads
- substituting dots in the names of the columns (sub, gsub, regexpr)
- dividing a dataframe column by different constants
- Again on overlaying plots (a plot region within a plot region)
- Is there in R a function equivalent to the mround, as found in most spreadsheets?
- again on ubuntu 7.10 and amd64