Learn R Programming

RVAideMemoire (version 0.9-7)

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

Description

Represent qualitative variables of a Hill and Smith mix analysis as in MCA. The function is based on the s.class() function of the package ade4.

Usage

scat.mix.categorical(dudi.obj, xax = 1, yax = 2, csub = 2, possub = "topleft", ...)

Arguments

dudi.obj
dudi.mix object.
xax
horizontal axis.
yax
vertical axis.
csub
title size.
possub
title position ("topleft", "topright", "bottomleft" or "bottomright").
...
additional arguments to s.class(). See help of this function.

References

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

See Also

dudi.mix, s.class

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.categorical(amix)

Run the code above in your browser using DataLab