p <- qplot(mpg, wt, data=mtcars, facets = vs ~ am)
hline.data = data.frame(z=1:4 , vs=c(0,0,1,1), am=c(0,1,0,1))
p+geom_hline(data=hline.data,yintercept=z)
#Error in get("new", env = GeomHline, inherits = TRUE)(GeomHline, ...) :
# object "z" not found
p+geom_hline(data=hline.data,aes(yintercept=z))
#yields lines at zero (as previously reported in this list:
# http://tinyurl.com/anoljh)
--
Mike Lawrence
Graduate Student
Department of Psychology
Dalhousie University
Looking to arrange a meeting? Check my public calendar:
http://tinyurl.com/mikes-public-calendar
~ Certainty is folly... I think. ~