gridrowcol               package:ade4               R Documentation

_C_o_m_p_l_e_t_e _r_e_g_u_l_a_r _g_r_i_d _a_n_a_l_y_s_i_s

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

     This function defines objects to analyse data sets associated with
     complete regular grid.

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

     gridrowcol(nrow, ncol, cell.names = NULL)

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

    nrow: size of the grid (number of rows)

    ncol: size of the grid (number of columns)

cell.names: grid cell labels

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

     Returns a list containing the following items : 

      xy: : a data frame with grid cell coordinates

    area: : a data frame with three variables to display grid cells as
          areas

    neig: : an object of class ''neig'' corresponding to a neighbouring
          graph of the grid (rook case)

orthobasis: : an object of class ''orthobasis'' corresponding to the
          analytical solution for the neighbouring graph

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

     Sbastien Ollier ollier@biomserv.univ-lyon1.fr 
      Daniel Chessel chessel@biomserv.univ-lyon1.fr

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

     Mot, A., Chessel, D. and Sabatier, D. (1993) Oprateurs de
     voisinage et analyse des donnes spatio-temporelles. _in_ J.D.
     Lebreton and B. Asselain, editors. Biomtrie et environnement.
     Masson, 45-72.

     Cornillon, P.A. (1998) _Prise en compte de proximits en analyse
     factorielle et comparative_. Thse, Ecole Nationale Suprieure
     Agronomique, Montpellier.

_S_e_e _A_l_s_o:

     'orthobasis', 'orthogram', 'mld'

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

     w <- gridrowcol(8,5)
     par(mfrow = c(1,2))
     area.plot(w$area,center = w$xy, graph = w$neig, clab = 0.75)
     area.plot(w$area,center = w$xy, graph = w$neig, clab = 0.75,
      label = as.character(1:40))
     par(mfrow = c(1,1))

     par(mfrow = c(5,8))
     for(k in 1:39)
         s.value(w$xy, w$orthobasis[,k], csi = 3, cleg = 0, csub = 2,
          sub = as.character(signif(attr(w$orthobasis, "values")[k],3)),
           incl = FALSE, addax = FALSE, cgr = 0, ylim = c(0,10))
     par(mfrow = c(1,1))

