

plot.formula {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_s

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

     Specify a scatterplot via a formula.

_U_s_a_g_e_:

     plot.formula(formula, data = NULL, subset, na.action, ..., ask = TRUE)
     plot(y ~ x, ...)

_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.

  subset: an optional vector specifying a subset of observa-
          tions to be used in the fitting process.

na.action: a function which indicates what should happen
          when the data contain `NA's.  The default action
          (`na.omit') is to omit any incomplete observa-
          tions.  The alternative action `na.fail' causes
          `plot' to print an error message and terminate if
          there are any incomplete observations.

     ...: graphical parameters may also be passed as argu-
          ments, see `par'. These can include `ylab', which
          if not supplied is set by `plot.formula'.

     ask: logical, see `par'.

_V_a_l_u_e_:

     This function is invoked for its side effect of drawing
     a scatter plot in the active graphics window.

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

     `plot.default', `plot.factor'.

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

     data(swiss)
     op <- par(mfrow=c(2,1))
     plot(Fertility ~ Education, data = swiss)
     plot(Fertility ~ Education, data = swiss, subset = Education < 20)
     par(op)

