Re: [R] lattice panel.abline use

2011-08-12 Thread Mikhail Titov
iday, August 12, 2011 10:41 AM > To: r-help@r-project.org > Subject: [R] lattice panel.abline use > > Dear R-users, > > I am unsuccessful in trying to add an horizontal line to all graphs in the > example below: > > library(lattice) > val<-runif(15) > x<-re

[R] lattice panel.abline use

2011-08-12 Thread jjap
Dear R-users, I am unsuccessful in trying to add an horizontal line to all graphs in the example below: library(lattice) val<-runif(15) x<-rep(seq(1:5),3) type<-c(rep("a",5), rep("b",5), rep("c",5)) xyplot(val ~ x | type, panel.abline(h=.6)) Any hints are appreciated. Best regards, ---Jean