Hello, can anybody tell me how to produce a plot like the one in cran.r-project.org/web/packages/lme4/vignettes/Implementation.pdf on page 13, Figure 6? The data is stored in: library(nlme) data(Oats) Cheers -- View this message in context: r.789695.n4.nabble.com/Help-needed-in-reproducing-a-plot-tp4119603p4119603.html Sent from the R help mailing list archive at Nabble.com.
Looks like a typical plot produced using the 'lattice' package. There is plenty of documentation on the use of the package. Run some of the examples. On Tue, Nov 29, 2011 at 10:43 AM, syrvn <mentor_ at gmx.net> wrote:> Hello, > > > can anybody tell me how to produce a plot like the one in > > cran.r-project.org/web/packages/lme4/vignettes/Implementation.pdf > > on page 13, Figure 6? > > The data is stored in: > > library(nlme) > data(Oats) > > > Cheers > > -- > View this message in context: r.789695.n4.nabble.com/Help-needed-in-reproducing-a-plot-tp4119603p4119603.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org mailing list > stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.-- Jim Holtman Data Munger Guru What is the problem that you are trying to solve? Tell me what you want to do, not how you want to do it.
Hi: This looks like the one: library('lattice') data(Oats, package = 'MEMSS') print(xyplot(yield ~ nitro | Block, Oats, groups = Variety, type = c("g", "b"), auto.key = list(lines = TRUE, space = 'top', columns = 3), xlab = "Nitrogen concentration (cwt/acre)", ylab = "Yield (bushels/acre)", aspect = 'xy')) Look at the source code of the implementation document in the same place that you found the pdf. I found it from the html help page for the lme4 package, but there are other places you could find it.) The code for the plots in the document are contained therein. Dennis On Tue, Nov 29, 2011 at 7:43 AM, syrvn <mentor_ at gmx.net> wrote:> Hello, > > > can anybody tell me how to produce a plot like the one in > > cran.r-project.org/web/packages/lme4/vignettes/Implementation.pdf > > on page 13, Figure 6? > > The data is stored in: > > library(nlme) > data(Oats) > > > Cheers > > -- > View this message in context: r.789695.n4.nabble.com/Help-needed-in-reproducing-a-plot-tp4119603p4119603.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org mailing list > stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >