within                 package:ade4                 R Documentation

_W_i_t_h_i_n _A_n_a_l_y_s_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     performs within analyses on an object of class 'dudi'.

_U_s_a_g_e:

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

_A_r_g_u_m_e_n_t_s:

    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

_V_a_l_u_e:

     Returns a list of the sub-class 'within' in the class 'dudi' 

    call: origine

      nf: number of axis saved

    rank: rank

   ratio: percentage of within inertia

     eig: numeric eigen values

      lw: numeric row weigths

      cw: numeric col weigths

    tabw: numeric table weigths

     fac: factor for grouping

     tab: data frame class-variables

      li: data frame row coordinates

      l1: data frame row normed scores

      co: data frame column coordinates

     $c1: data frame column normed scores

      ls: data frame supplementary row coordinates

      as: data frame inertia axis onto within axis

_A_u_t_h_o_r(_s):

     Daniel Chessel chessel@biomserv.univ-lyon1.fr

_R_e_f_e_r_e_n_c_e_s:

     Benzcri, J. P. (1983) Analyse de l'inertie intra-classe par
     l'analyse d'un tableau de correspondances. _Les Cahiers de
     l'Analyse des donnes_, *8*, 351-358.

      Doldec, 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.

_E_x_a_m_p_l_e_s:

     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)

