andrews {andrews}R Documentation

Andrews curves

Description

Andrews curves for visualization of multidimensional data

Usage

andrews(df, type=1, clr=NULL, step=100, ymax=10, main=NULL, sub=NULL)

Arguments

df

data frame.

type

type of curve

1: f(t)=x1/(2^0.5)+x2*sin(t)+x3*cos(t)+x4*sin(2*t)+x5*cos(2*t)+...

2: f(t)=x1*sin(t)+x2*cos(t)+x3*sin(2*t)+x4*cos(2*t)+...

3: f(t)=x1*cos(t)+x2*cos((2*t)^0.5)+x3*cos((3*t)^0.5)+...

4: f(t)=1/(2^0.5)*(x1+x2*(sin(t)+cos(t))+x3*(sin(t)-cos(t))+x4*(sin(2*t)+cos(2*t))+x5*(sin(2*t)-cos(2*t))+...)

clr

number of column id date frame for color of curves.

step

smoothness of curves.

ymax

maximum of y coordinate.

main

main title for the plot.

sub

sub title for the plot.

Details

Andrews curves transform multidimensional data into curves. This package presents four types of curves.

Author(s)

Jaroslav Myslivec <jaroslav.myslivec@upce.cz>

References

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.

Examples

   data(iris)
   andrews(iris,clr=5,ymax=3)
   andrews(iris,type=4,clr=5,ymax=2)

[Package andrews version 1.0 Index]