[R] Abline in dotplot

Thompson, Valeria V valeria.v.thompson at boeing.com
Wed May 16 21:04:11 CEST 2007


Hello,

I have trouble adding an abline to a dotplot() from "lattice" package.
For example, I would like to draw a line at x=3:

> library(lattice)
> x<-1:5
> names(x) <- c("a", "b", "c", "d", "e")
> dotplot(sample(x))
> panel.abline(v=3)

Produces a line on the left hand side of the origin. What would be a
correct way to do this? 

Thank you,

Valeria V. Thompson
Applied Statistics Group
Mathematics & Computing Technology
The Boeing Company
(425) 373-2740



More information about the R-help mailing list