
ggsprings: Draw Springs in 'ggplot2' to Illustrate Least Squares
Source:R/ggsprings-package.R
ggsprings-package.RdImplements an extension of 'ggplot2' which draws springs instead of straight lines between pairs of points. Aside from possible artistic use, the main impetus for this is to illustrate least squares problems by their physical analog: each observation is attached by a spring to a fitted point or line, and the stretch of each spring shows the size of its residual. Examples include the sample mean, the multivariate centroid, linear and non-linear regression, and principal components analysis.
Author
Maintainer: Michael Friendly friendly@yorku.ca (ORCID)
Authors:
Michael Friendly friendly@yorku.ca (ORCID)