Displaying 1 result from an estimated 1 matches for "qcrate".
Did you mean:
crate
2008 Feb 27
1
Hmisc xYplot won't do conditioning on factors?
...trying to replace (lattice) standard xyplot with xYplot variant from
Hmisc package to be able to add error bars to my plots. However, this does
not work, e.g:
library(lattice)
d <- data.frame(
SKU=gl(3, 1, 21, labels=c("a", "b", "c")),
Weekday=gl(7, 3, 21),
QCRate=runif(21))
xyplot(QCRate ~ Weekday | SKU, data=d)
(this plots nice 3 panels as per a,b,c conditionals)
library(Hmisc)
> xYplot(QCRate ~ Weekday | SKU, data=d)
Error in Summary.factor(1:7, na.rm = TRUE) :
range not meaningful for factors
Is there a workaround?
Thanks,
Ivan
The information...