spineplot                package:vcd                R Documentation

_S_p_i_n_e_p_l_o_t_s

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

     Spine plots are special cases of mosaic plots, 'spineplot' is a
     convenience interface to 'mosaic'.

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

     spineplot(x, ...)
     ## Default S3 method:
     spineplot(x, split_vertical = TRUE, ...)
     ## S3 method for class 'formula':
     spineplot(formula, data = list(), cut = NULL,  ...)

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

       x: an object, the default method covers all cases covered by
          'mosaic'.

 formula: a '"formula"' of type 'y ~ x' with a single dependent
          '"factor"' and a single explanatory variable. Alternatively,
          this can be a '"table"' object.

split_vertical: logical. Contrary to the settings in 'mosaic', the
          default is to start with a vertical split.

    data: an optional data frame (only used if 'formula' is a formula).

     cut: if 'x' is a numeric variable, it is 'cut' into a factor at
          these points, by default set to 'fivenum(x)'.

     ...: additional arguments passed to 'mosaic'.

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

     'spineplot' is a simple convenience interface to 'mosaic' which
     uses a different default for the splitting direction. It is aimed
     at simple explanatory models like 'y ~ x' where 'x' can be  either
     a factor or a numeric which is 'cut' to a factor.

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

     The structable visualized is returned invisibly.

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

     'mosaic'

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

     ## Arthritis data (dependence on a categorical variable)
     data(Arthritis)
     (spineplot(Improved ~ Treatment, data = Arthritis))

     ## Space shuttle data (dependence on a numerical variable)
     data(SpaceShuttle)
     (spineplot(Fail ~ Temperature, data = SpaceShuttle))

