residualspaper           package:spatstat           R Documentation

_D_a_t_a _a_n_d _C_o_d_e _F_r_o_m _J_R_S_S _D_i_s_c_u_s_s_i_o_n _P_a_p_e_r _o_n _R_e_s_i_d_u_a_l_s

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

     This dataset contains the point patterns used as examples in the
     paper of Baddeley et al (2005). [Figure 2 is already available in
     'spatstat' as the 'copper' dataset.] 

     R code is also provided to reproduce all the Figures displayed in
     Baddeley et al (2005). The component 'plotfig' is a function,
     which can be called with a numeric or character argument
     specifying the Figure or Figures that should be plotted. See the
     Examples.

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

     data(residualspaper)

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

     'residualspaper' is a list with the following components:

     _F_i_g_1 The locations of Japanese pine seedlings and saplings from
          Figure 1 of the paper. A point pattern (object of class
          '"ppp"').

     _F_i_g_3 The Chorley-Ribble data from Figure 3 of the paper. A list
          with three components, 'lung', 'larynx' and 'incin'. Each is
          a matrix with 2 columns giving the coordinates of the lung
          cancer cases, larynx cancer cases, and the incinerator,
          respectively. Coordinates are Eastings and Northings in km.

     _F_i_g_4_a The synthetic dataset in Figure 4 (a) of the paper.

     _F_i_g_4_b The synthetic dataset in Figure 4 (b) of the paper.

     _F_i_g_4_c The synthetic dataset in Figure 4 (c) of the paper.

     _F_i_g_1_1 The covariate displayed in Figure 11. A pixel image (object
          of class '"im"') whose pixel values are distances to the
          nearest line segment in the 'copper' data.

     _p_l_o_t_f_i_g A function which will compute and plot any of the Figures
          from the paper. The argument of 'plotfig' is either a numeric
          vector or a character vector, specifying the Figure or
          Figures to be plotted. See the Examples.

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

     Figure 1: Prof M. Numata. Data kindly supplied by Professor Y.
     Ogata with kind permission of Prof M. Tanemura.

     Figure 3:  Professor P.J. Diggle (rescaled by Adrian Baddeley)

     Figure 4 (a,b,c): Adrian Baddeley

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

     Baddeley, A., Turner, R., Moller, J. and Hazelton, M. (2005)
     Residual analysis for spatial point processes. _Journal of the
     Royal Statistical Society, Series B_. In press.

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

     ## Not run: 
       data(residualspaper)
       
       X <- residualspaper$Fig4a
       summary(X)
       plot(X)

       # reproduce all Figures
       residualspaper$plotfig()

       # reproduce Figures 1 to 10
       residualspaper$plotfig(1:10)

       # reproduce Figure 7 (a)
       residualspaper$plotfig("7a")
     ## End(Not run)

