Skip to content
Prev 171161 / 398502 Next

adding a reference line to an xyplot

On Fri, Feb 20, 2009 at 01:34:02AM -0800, Chris Bennett wrote:
The panel function is the way to go:

xyplot( matter~year|plot,
	type="l",
	panel=function(...){
		panel.xyplot(...)
		panel.abline(v=1995)
	}
)


BTW: it is not a good idea to use the name of builting functions as a
variable name (plot).

cu
	Philipp