zealand                 package:ade4                 R Documentation

_R_o_a_d _d_i_s_t_a_n_c_e_s _i_n _N_e_w-_Z_e_a_l_a_n_d

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

     This data set gives the road distances between 13 towns in
     New-Zealand.

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

     data(zealand)

_F_o_r_m_a_t:

     'zealand' is a list of 3 components:

     _r_o_a_d is a data frame with 13 rows (New Zealand towns) and 13
          columns (New Zealand towns) containing the road distances
          between these towns.

     _x_y is a data frame containing the coordinates of the 13 towns. 

     _n_e_i_g is a object of class 'neig', a neighbour graph to visualize
          the map shape.

_S_o_u_r_c_e:

     Manly, B.F. (1994) _ Multivariate Statistical Methods. A primer._,
     Second edition, Chapman and Hall, London, 1-215, page 172.

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

     data(zealand)

     d0 = mat2dist(as.matrix(zealand$road))
     d1 = cailliez (d0)
     d2 = lingoes(d0)
     s.label(zealand$xy,lab=as.character(1:13),neig=zealand$neig)
     par(mfrow = c(2,2))
     library(mva)
         s.label(cmdscale(dist(zealand$xy)),lab = as.character(1:13),
          neig = zealand$neig, sub = "Distance canonique", csub = 2)
         s.label(cmdscale(d0), lab = as.character(1:13), neig = zealand$neig,
             sub = "Distance routire", csub = 2)
         s.label(cmdscale(d1), lab = as.character(1:13), neig = zealand$neig,
             sub = "Distance routire / Cailliez", csub = 2)
         s.label(cmdscale(d2), lab = as.character(1:13), neig = zealand$neig,
             sub = "Distance routire / Lingos", csub = 2)

