mstree                 package:ade4                 R Documentation

_M_i_n_i_m_a_l _S_p_a_n_n_i_n_g _T_r_e_e

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

     Minimal Spanning Tree

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

     mstree(xdist, ngmax = 1)

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

   xdist: an object of class 'dist' containing an observed
          dissimilarity 

   ngmax: Component number (default=1). Select 1 for getting classical
          MST. To add n supplementary edges k times: select k+1. 

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

     returns an object of class 'neig'

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

     Daniel Chessel chessel@biomserv.univ-lyon1.fr

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

     data(mafragh)
     maf.coa = dudi.coa(mafragh$flo, scan = FALSE)
     maf.mst = mstree(dist.dudi(maf.coa), 1)
     s.label(maf.coa$li, clab = 0, cpoi = 2, neig = maf.mst, cnei = 1)

     xy = data.frame(x = runif(20), y = runif(20))
     par(mfrow = c(2,2))
     for (k in 1:4) {
         neig = mstree (dist.quant(xy,1), k)
         s.label(xy, xlim = c(0,1), ylim = c(0,1), addax = FALSE, neig = neig)
      }

