[R] xyplot, loess and se

About this list Date view Thread view Subject view Author view Attachment view

From: Luca De Benedictis (debene@unimc.it)
Date: Sat 08 May 2004 - 21:24:19 EST


Message-id: <409CC363.9000103@unimc.it>

Dear R-friends,
in plotting x and y, conditioning on z, I am trying to find a way to
make the standard errors appearing together with the loess in the
trellis plot.
I have tried the following code without success.

x <- x
y <- y
z.two.groups <- equal.count(z, number=2, overlap=.1)
> xyplot(x~y | z.two.groups,
+ prepanel = function(x, y)
+ prepanel.loess(x, y, span = .75, se = TRUE),
+ panel = function(x, y){
+ panel.grid(h = 2, v = 2, lwd = 2)
+ panel.xyplot(x, y, cex = 0.6)
+ panel.loess(x, y, span = .75, se = TRUE)
+ },
+ par.strip = list(cex = .75),aspect = 2,
+ xlab = list("x",cex = 1),
+ ylab = list("y",cex = 1),
+ main=list("", cex=2)
+ )

Any help would be appreciated

Luca

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:08 EST