Draw Andrew's Curve
Description
This function evaluates the transformation of the original data matrix for
t
from pi
to pi
, and uses matplot
to draw the
curves.
Usage
1 2  andrews_curve(x, n = 101, type = "l", lty = 1, lwd = 1, pch = NA, xlab = "t",
ylab = "f(t)", ...)

Arguments
x 
a data frame or matrix 
n 
number of xaxis values at which f(t) is evaluated 
type, lty, lwd, pch, xlab, ylab, ... 
passed to

Value
a matrix of coefficients for each observation at different t values
Author(s)
Yihui Xie <http://yihui.name>
References
http://fedc.wiwi.huberlin.de/xplore/tutorials/mvahtmlnode9.html
See Also
matplot
Examples
1  andrews_curve(iris[, 5], col = as.integer(iris[, 5]))
