Learn R Programming

RVAideMemoire (version 0.9-6)

scat.mix.numeric: Representation of numeric variables in Hill and Smith mix analysis

Description

Represent numeric variables of a Hill and Smith mix analysis as in PCA. The function is based on the s.corcircle() function of ade4 package.

Usage

scat.mix.numeric(obj.dudi, xax = 1, yax = 2, ...)

Arguments

obj.dudi
dudi.mix object.
xax
horizontal axis.
yax
vertical axis.
...
additional arguments to s.corcircle(). See help of this function.

References

Champely, S. 2005 Introduction � l'analyse multivari�e (factorielle) sous R.

See Also

dudi.mix, s.corcircle

Examples

Run this code
# Imaginary dataset
age<-sample(15:60,50,replace=TRUE)
sex<-sample(c("M","F"),50,replace=TRUE)
size<-sample(155:190,50,replace=TRUE)
hair<-sample(c("Fair","Dark","Russet"),50,replace=TRUE)
eyes<-sample(c("Blue","Green","Brown"),50,replace=TRUE)
weight<-sample(50:85,50,replace=TRUE)
hand<-sample(c("Left.handed","Right.handed"),50,replace=TRUE)
tab<-data.frame(age,sex,size,weight,hand,eyes,hair)
amix<-dudi.mix(tab,scannf=FALSE,nf=2)
scat.mix.numeric(amix)

Run the code above in your browser using DataLab