Skip to content
Prev 73501 / 398498 Next

getting panel.loess to use updated version of loess.smooth

A quick workaround, kudos to Deepayan Sarkar, is to use grid:: for both 
grid.lines AND gpar in panel.loess:

        grid::grid.lines(x = smooth$x, y = smooth$y, default.units = 
"native",
            gp = grid::gpar(col = col.line, lty = lty, lwd = lwd))

Then write a new panel function as you suggest (though the name can be 
the same), and to export this panel function in the package NAMESPACE 
file. loess.smooth and simpleLoess are separate functions, sorry if I 
didn't make that clear.

This works well enough that I don't require anything fancier for now. 
Thanks!

Ben
Sundar Dorai-Raj wrote: