getSmootherFunction.ggobi {Rggobi}R Documentation

Get or set the R function used by ggobi to perform smoothing

Description

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.

Usage

getSmootherFunction.ggobi(.gobi=getDefaultGGobi())

Arguments

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

Details

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.

Value

Author(s)

Duncan Temple Lang

References

http://www.ggobi.org,http://www.ggobi.org/Rggobi

See Also

setSmootherFunction.ggobi

Examples


 library(modreg)
 setSmootherFunction(function(x, y, w) {
                       predict(loess(y ~ x, data.frame(x=x, y = y), span = w))
                      })
 

 getSmootherFunction()


[Package Contents]