getSmootherFunction.ggobi {Rggobi} | R Documentation |
DEPRECATED and NON-FUNCTIONAL. These functions allow the user to specify and query a function that ggobi uses when computing the smoothed values for predicting one variable from another.
getSmootherFunction.ggobi(.gobi=getDefaultGGobi())
fun |
the function that it is to be set as the
active smoothing function for ggobi. This should take $3$ arguments:
x , y and the span or bandwidth of the smoothing.
The first two are numeric vectors of length $n$, the number of observations
and the last is a single numeric value. |
.gobi |
the GGobi identifier, either an integer giving the
GGobi by index or an object of class ggobi |
This sets a single internal C symbol to point to this function. If it is non-NULL, ggobi will use the value as the address of an R function and call it.
Duncan Temple Lang
http://www.ggobi.org,http://www.ggobi.org/Rggobi
## Not run: library(modreg) setSmootherFunction(function(x, y, w) { predict(loess(y ~ x, data.frame(x=x, y = y), span = w)) }) getSmootherFunction() ## End(Not run)