Skip to content
Prev 244395 / 398502 Next

[lattice xyplot] Help needed in help in customizing the panel.abline() function

Sorry, just realized that there was a typo in the following code of my
original post. The correct code is as shown below (corrected 'data=swtop16'
to 'data=DF'):

sales <- xyplot(pct_inv_left  ~ week_num|sku_num, data=DF,type =
"l",lwd=2,panel = function(...) {
           panel.abline(h = 75, lty = 2)
           panel.xyplot(...)
       }) 

Thanks,
-Girish