Skip to content
Prev 244536 / 398502 Next

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

Hi Girish,

Try this:

disc <- xyplot(cnt_gt50pct_disc ~ week_num|sku_num, data=DF,type =
"h",lwd=2,panel = function(x, y, ...) {
          panel.abline(v = x[which.max(y)], lty = 2)
          panel.xyplot(x, y, ...)
      })

-Felix
On 9 December 2010 17:35, Girish A.R. <garamach at gmail.com> wrote: