[R] getting panel.loess to use updated version of loess.smooth

From: Benjamin Tyner <btyner_at_gmail.com>
Date: Wed 13 Jul 2005 - 03:54:15 EST

I'm updating the loess routines to allow for, among other things, arbitrary local polynomial degree and number of predictors. For now, I've given the updated package its own namespace. The trouble is, panel.loess still calls the original code in package:stats instead of the new loess package, regardless of whether package:loess or package:lattice comes first in the search list. If I export panel.loess from the new package, then it can't see grid.lines anymore.

I've tried using fixInNamespace to change the loess.smooth in package:stats to point to the updated simpleLoess, but it is locked. At http://tolstoy.newcastle.edu.au/R/help/04/05/0428.html it was suggested to write a new panel function. However I still need to be able to access grid.lines, and getFromNamespace("grid.lines","grid") is not the way to do this.

Any ideas? This seems simple but I'm stumped.


R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Jul 13 04:00:42 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:34 EST