andrews | R Documentation |
Andrews curves for visualization of multidimensional data.
step
determines the number of line segments for each curve.
If ymax==NA
then the maximum y coordinate will be determined from the curves.
Note that for type==3
the x range is [0, 4*pi] otherwise [-pi, pi].
Observations containing NA
, Nan
, -Inf
, or +Inf
will be deleted before plotting
andrews(x, type = 1, step = 100, ..., normalize = 1, ymax = NA)
x |
data frame or matrix |
type |
type of curve (default:
|
step |
smoothness of curves |
... |
further parameters given to graphics::plot and graphics::lines |
normalize |
integer: normalization method (default:
|
ymax |
numeric: maximum of y coordinate (default: |
nothing
Andrews, D. F. (1972) Plots of High-Dimensional Data. Biometrics, vol. 28, no. 1, pp. 125-136.
Khattree, R., Naik, D. N. (2002) Andrews Plots for Multivariate Data: Some New Suggestions and Applications. Journal of Statistical Planning and Inference, vol. 100, no. 2, pp. 411-425.
In package andrews
or at CRAN
andrews(iris[,-5], col=as.factor(iris[,5])) andrews(iris[,-5], type=4, col=as.factor(iris[,5]), ymax=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.