[R] loess lines in xyplot with two or more variables on the left side of a formula

2006-11-23 Thread Chuck Cleland
Hello: I recall something like this being discuss recently, but I can't seem to locate an example in the archives. I have data like the following: df - expand.grid(1:4, 1992:2002) names(df) - c(MSA, YEAR) df$IDUPREV - runif(44) df$VALIDAT - rnorm(44) I want to create an xyplot() with

Re: [R] loess lines in xyplot with two or more variables on the left side of a formula

2006-11-23 Thread Gabor Grothendieck
Try this: xyplot(IDUPREV + VALIDAT~ YEAR | MSA, data = df, type= c(smooth, o)) On 11/23/06, Chuck Cleland [EMAIL PROTECTED] wrote: Hello: I recall something like this being discuss recently, but I can't seem to locate an example in the archives. I have data like the following: df -