It would help to have a reproducible example, since your statement
is not true in general. For example,
> x <- rnorm(100)
> a <- gl(2, 50)
> b <- gl(3, 1, 100)
> densityplot(~ x | a * b)
seems to work fine for me. A traceback() [first few lines] might also
help. (The error message is probably not from lattice, but from
something it calls.)
--- Phil <P.Atkinson at cdsc.nthames.nhs.uk>
wrote:>
> Using one numeric and 2 factor variables
>
> densityplot( ~ Numeric | Factor1, ...)
> densityplot( ~ Numeric | Factor2, ...)
>
> .. both work, but
>
> densityplot( ~ Numeric | Factor1*Factor2, ...)
>
> produces the error
>
> Error in if (!(lo <- min(hi, IQR(x)/1.34))) (lo <- hi) || (lo <-
abs(x[1]))
> || :
> missing value where logical needed
>
> None of the variables contain missing values. Any ideas what I'm doing
> wrong??!!
>
> Many thanks
>
> Phil.
>
>
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-> r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !) To: r-help-request at
stat.math.ethz.ch
>
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
__________________________________________________
LAUNCH - Your Yahoo! Music Experience
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at
stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._