Re: [R] xyplot with lowess curves

2009-02-02 Thread Hutchinson,David [PYR]
Sundar, That is exactly what I was hoping for. Thanks for your help! Dave -Original Message- From: Sundar Dorai-Raj [mailto:sdorai...@gmail.com] Sent: Monday, February 02, 2009 12:47 PM To: Hutchinson,David [PYR] Cc: r-help@r-project.org Subject: Re: [R] xyplot with lowess curves

Re: [R] xyplot with lowess curves

2009-02-02 Thread Sundar Dorai-Raj
ength.out=n, by = 1), > SnowLineElevation = runif(n, 0, 100) >) > ) > } > > xyplot ( > SnowLineElevation ~ Year | Model, > data = d, > ylim = c(0,100), > type = c('p','smooth'), > col = 'blue', > pch = 21, > xlab =

Re: [R] xyplot with lowess curves

2009-02-02 Thread Hutchinson,David [PYR]
= d, ylim = c(0,100), type = c('p','smooth'), col = 'blue', pch = 21, xlab = 'Year', ylab = 'Snowline Elevation [m]' ) -Original Message- From: Sundar Dorai-Raj [mailto:sdorai...@gmail.com] Sent: Monday, February 02, 2009 11:4

Re: [R] xyplot with lowess curves

2009-02-02 Thread Sundar Dorai-Raj
You'll need a custom panel function. It would also help if you provided a reproducible example: xyplot ( SnowLineElevation ~ Year | Model, data = data, panel = function(x, y, col, ...) { col <- ifelse(panel.number() == 1, "red", "green") panel.xyplot(x, y, col = "blue", ...) pane

[R] xyplot with lowess curves

2009-02-02 Thread Hutchinson,David [PYR]
I am trying to change the attributes of the lowess lines fit to an xyplot command, but have been unsuccessful in my search of the online help. Right now, both the points and lowess line come out in the same color (blue). I am unsure how I can change the properties of the lowess line separately. x