bluesky315 at gmail.com
2010-Feb-08 22:31 UTC
[R] What is the equivalent function in R to xyplot in S?
Page 140 of MASS uses the function xyplot. But I don't find it in R. Is there a package that I should load to use xyplot. Or there is a function with a different name in R that does the same thing as xyplot in S. xyplot(Gas ~ Temp | Insul, whiteside, panel function(x, y, ...) { panel.xyplot(x, y, ...) panel.lmline(x, y, ...) }, xlab = "Average external temperature (deg. C)", ylab = "Gas consumption (1000 cubic feet)", aspect = "xy", strip = function(...) strip.default(..., style = 1))
Peter Alspach
2010-Feb-08 22:36 UTC
[R] What is the equivalent function in R to xyplot in S?
Tena koe library(lattice) ?xyplot HTH ..... Peter Alspach> -----Original Message----- > From: r-help-bounces at r-project.org > [mailto:r-help-bounces at r-project.org] On Behalf Of > bluesky315 at gmail.com > Sent: Tuesday, 9 February 2010 11:31 a.m. > To: r-help at stat.math.ethz.ch > Subject: [R] What is the equivalent function in R to xyplot in S? > > Page 140 of MASS uses the function xyplot. But I don't find it in R. > Is there a package that I should load to use xyplot. Or there > is a function with a different name in R that does the same > thing as xyplot in S. > > xyplot(Gas ~ Temp | Insul, whiteside, panel = function(x, y, > ...) { panel.xyplot(x, y, ...) panel.lmline(x, y, ...) }, > xlab = "Average external temperature (deg. C)", ylab = "Gas > consumption (1000 cubic feet)", aspect = "xy", strip = > function(...) strip.default(..., style = 1)) > > ______________________________________________ > R-help at r-project.org 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. >
Try help.search("xyplot"). If nothing comes up, try RSiteSearch("xyplot"). -Ista On Mon, Feb 8, 2010 at 10:31 PM, <bluesky315 at gmail.com> wrote:> Page 140 of MASS uses the function xyplot. But I don't find it in R. > Is there a package that I should load to use xyplot. Or there is a > function with a different name in R that does the same thing as xyplot > in S. > > xyplot(Gas ~ Temp | Insul, whiteside, panel > function(x, y, ...) { > panel.xyplot(x, y, ...) > panel.lmline(x, y, ...) > }, xlab = "Average external temperature (deg. C)", > ylab = "Gas consumption (1000 cubic feet)", aspect = "xy", > strip = function(...) strip.default(..., style = 1)) > > ______________________________________________ > R-help at r-project.org 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. >-- Ista Zahn Graduate student University of Rochester Department of Clinical and Social Psychology http://yourpsyche.org