Hi,

I am 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 transmitted in this electronic communica...{{dropped:10}}

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to