Linear interpolation, polynomial smoothing, and splines

Linear interpolation

plot of chunk rerDiagSplines01
plot of chunk rerDiagSplines01

Polynomial smoothing

Local polynomial regression fitting

plot of chunk rerDiagSplines02
plot of chunk rerDiagSplines02

See supsmu() for Friedman’s SuperSmoother and smooth() for Tukey’s (running median) smoothing.

Splines

X-spline

plot of chunk rerDiagSplines03
plot of chunk rerDiagSplines03

Cubic splines

plot of chunk rerDiagSplines04
plot of chunk rerDiagSplines04

Get the article source from GitHub

R markdown - markdown - R code - all posts