pairs.formula              package:base              R Documentation

_F_o_r_m_u_l_a _N_o_t_a_t_i_o_n _f_o_r _S_c_a_t_t_e_r_p_l_o_t _M_a_t_r_i_c_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     Produce a matrix of scatterplots using formula notation.

_U_s_a_g_e:

     pairs(formula, data = NULL, ..., subset)

_A_r_g_u_m_e_n_t_s:

 formula: a formula, such as `y ~ x'.

    data: a data.frame (or list) from which the variables in `formula'
          should be taken.

     ...: arguments to the default pairs method and graphical
          parameters may also be passed as arguments, see `par'.

  subset: an optional vector specifying a subset of observations to be
          used for plotting.

_D_e_t_a_i_l_s:

     This is a method of the generic function `pairs'.  It operates by
     setting up the data from the formula specification, and then
     calling `pairs.default'.

_S_e_e _A_l_s_o:

     `pairs.default'

_E_x_a_m_p_l_e_s:

     data(swiss)
     pairs(~ Fertility + Education + Catholic, data = swiss,
           subset = Education < 20, main = "Swiss data, Education < 20")

