Today I came across this package as a generalized additive model package as an example in ggplot package. This is basically used for smoothing.

I need to figure out sometime to work on this