[R] Suppressing error messages printed in xyplot() with panel function

2011-08-24 Thread Adam Zeilinger
Hello, I am using the xyplot() function to create a series of scatterplot panels with lines of best fit. To draw the lines of best fit for each panel, I am using a panel function. Here's an example: species - as.character(c(rep(list(A, B, A), 10), B)) year - as.character(c(rep(list(2009,

Re: [R] Suppressing error messages printed in xyplot() with panel function

2011-08-24 Thread Dennis Murphy
Hi: Here's one way out: xyplot(y ~ x|species*year, data = ex.data, type = c('p', 'r')) type = is a very useful argument to know in xyplot(). See p.75 of the Lattice book. HTH, Dennis On Wed, Aug 24, 2011 at 12:30 PM, Adam Zeilinger zeil0...@umn.edu wrote: Hello, I am using the xyplot()

Re: [R] Suppressing error messages printed in xyplot() with panel function

2011-08-24 Thread Deepayan Sarkar
On Thu, Aug 25, 2011 at 1:00 AM, Adam Zeilinger zeil0...@umn.edu wrote: Hello, I am using the xyplot() function to create a series of scatterplot panels with lines of best fit.  To draw the lines of best fit for each panel, I am using a panel function.  Here's an example: species -

Re: [R] Suppressing error messages printed in xyplot() with panel function

2011-08-24 Thread Adam Zeilinger
Dear Deepayan and Dennis, Both of your proposed fixes worked perfectly. Thank you! Adam On 8/24/2011 9:47 PM, Deepayan Sarkar wrote: On Thu, Aug 25, 2011 at 1:00 AM, Adam Zeilingerzeil0...@umn.edu wrote: Hello, I am using the xyplot() function to create a series of scatterplot panels