Pairs plot panel functions for off-diagonal cellspackage:vcdR Documentation

_O_f_f-_d_i_a_g_o_n_a_l _P_a_n_e_l _F_u_n_c_t_i_o_n_s _f_o_r _T_a_b_l_e _P_a_i_r_s _P_l_o_t

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

     Off-diagonal panel functions for 'pairs.table'.

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

     pairs_strucplot(panel = mosaic, 
       type = c("pairwise", "total", "conditional", "joint"),
       legend = FALSE, margins = c(0, 0, 0, 0), labeling = NULL,
       shade = FALSE, ...)
     pairs_assoc(...)
     pairs_mosaic(...)

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

   panel: function to be used for the plots in each cell-currently,
          'assoc' and 'mosaic' are available.

    type: character string specifying the type of independence model
          visualized in the cells.

  legend: logical specifying whether a legend should be displayed in
          the cells or not.

 margins: margins inside each cell (see 'strucplot').

labeling: labeling function or labeling-generating function (see
          'strucplot').

   shade: shading function or shading-generating function (see
          'strucplot').

     ...: 'pairs_mosaic' and 'pairs_assoc': parameters passed to
          'pairs_assocplot'. 'pairs_assocplot': other parameters passed
          to panel function.

_D_e_t_a_i_l_s:

     These functions really just wrap 'assoc' and 'mosaic' by basically
     inhibiting labeling and legend-drawing and setting the margins to
     0.

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

     A function with arguments: 

       x: contingency table.

     i,j: cell coordiantes.

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

     David Meyer David.Meyer@R-project.org

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

     Cohen, A. (1980), On the graphical display of the significant
     components in a two-way contingency table. _Communications in
     Statistics-Theory and Methods_, *A9*, 1025-1041.

     Friendly, M. (1992), Graphical methods for categorical data. _SAS
     User Group International Conference Proceedings_, *17*, 190-200.
     <URL: http://www.math.yorku.ca/SCS/sugi/sugi17-paper.html>

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

     'pairs.table', 'pairs_text', 'pairs_barplot', 'assoc', 'mosaic'

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

     data(UCBAdmissions)
     data(PreSex)

     pairs(PreSex)
     pairs(UCBAdmissions)
     pairs(UCBAdmissions, upper_panel_args = list(shade = FALSE))
     pairs(UCBAdmissions, lower_panel = pairs_mosaic(type = "conditional"))
     pairs(UCBAdmissions, upper_panel = pairs_assoc)

