key=list(columns=3,
> text=list(paste(c("forecast: ", "",""),
>unique(fcast$LAG), "years")),
>points=Rows(sps,1:3)))
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behal
How should I pass abline to this function so that I get a reference line
at h=0 in each panel?
sps <- trellis.par.get("superpose.symbol")
sps$pch <- 1:10
trellis.par.set("superpose.symbol",sps)
xyplot(fcast$LOGDIFF~fcast$VINTAGE|fcast$REGION,
groups=fcast$LAG,
panel=panel.superpose,
> I wonderif there is a simple way to draw a regression line in the xyplot:
Try:
xyplot(y ~ x| age.cut, xlab="x", ylab="y", type=c("p","r"))
Hadley
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do rea
On Sat, 17 Sep 2005, Marc Bernard wrote:
> Dear All,
>
> I wonderif there is a simple way to draw a regression line in the xyplot:
> more specifically, let:
>
> age <- c(20:30, 31:40 )
> age.cut <- cut(age, breaks = 2 )
> y<- rnorm(20)
> x <- rnorm(20,4,1)
>
> xyplot(y ~ x| age.cut, xlab="x",
Dear All,
I wonderif there is a simple way to draw a regression line in the xyplot:
more specifically, let:
age <- c(20:30, 31:40 )
age.cut <- cut(age, breaks = 2 )
y<- rnorm(20)
x <- rnorm(20,4,1)
xyplot(y ~ x| age.cut, xlab="x", ylab="y")
How to draw (in the plot given by xyplot)