Learn R Programming

ade4 (version 1.2-2)

within: Within Analyses

Description

performs within analyses on an object of class dudi.

Usage

within(dudi, fac, scannf = TRUE, nf = 2) 
plot.within (x, xax = 1, yax = 2, ...) 
print.within (x, ...)

Arguments

dudi
an object of class dudi
fac
a factor distributing the rows of dudi$tab in classes
scannf
a logical value indicating whether the eigenvalues bar plot should be displayed
nf
if scannf FALSE, an integer indicating the number of kept axes
xax
the column number for the x-axis
yax
the column number for the y-axis
x
an object of class 'within'
...
further arguments passed to or from other methods

Value

  • Returns a list of the sub-class within in the class dudi
  • callorigine
  • nfnumber of axis saved
  • rankrank
  • ratiopercentage of within inertia
  • eignumeric eigen values
  • lwnumeric row weigths
  • cwnumeric col weigths
  • tabwnumeric table weigths
  • facfactor for grouping
  • tabdata frame class-variables
  • lidata frame row coordinates
  • l1data frame row normed scores
  • codata frame column coordinates
  • $c1data frame column normed scores
  • lsdata frame supplementary row coordinates
  • asdata frame inertia axis onto within axis

References

Benz�cri, J. P. (1983) Analyse de l'inertie intra-classe par l'analyse d'un tableau de correspondances. Les Cahiers de l'Analyse des donn�es, 8, 351--358. Dol�dec, S. and Chessel, D. (1987) Rythmes saisonniers et composantes stationnelles en milieu aquatique I- Description d'un plan d'observations complet par projection de variables. Acta Oecologica, Oecologia Generalis, 8, 3, 403--426.

Examples

Run this code
data(meaudret)
par(mfrow = c(2,2))
pca1 <- dudi.pca(meaudret$mil, scan = FALSE, nf = 4)
s.traject(pca1$li, meaudret$plan$sta, 
    sub = "Principal Component Analysis", csub = 1.5)
wit1 <- within(pca1, meaudret$plan$sta, scan = FALSE, nf = 2)
s.traject(wit1$li, meaudret$plan$sta, 
    sub = "Within site Principal Component Analysis", csub = 1.5)
s.corcircle (wit1$as)
par(mfrow = c(1,1))
plot(wit1)

Run the code above in your browser using DataLab