Mutiple page trellis plots with relation = "free" or "sliced"
Yes. The number of pages in my layout argument (200) was greater than the number of unique values in my conditioning variable (168). Changing to layout = c(1, 1, 168) solves the problem. Very sorry, I should have thought of that. Thanks so much for your response, and many, many thanks for implementing lattice. It is incredibly powerful and a joy to use. Jim -----Original Message----- From: Deepayan Sarkar [mailto:deepayan at stat.wisc.edu] Sent: Friday, December 06, 2002 1:55 PM To: Jim Rogers; r-help at stat.math.ethz.ch Subject: Re: [R] Mutiple page trellis plots with relation = "free" or "sliced"
On Friday 06 December 2002 08:44 am, Jim Rogers wrote:
Hello,
Has anyone out there encountered a problem like this:
xyplot(Plasma ~ Serum | Analyte,
data = sp.df,
aspect = 1,
layout = c(1, 1, 200),
scales = list(relation = "free")
)
Gives the error:
Error in pretty(x[is.finite(x)], ...) : x must be numeric
No, this is supposed to work. I'm not sure where the problem might be, but it could have something to do with panels without any data in them. Does that happen in your case ?