latticeParseFormula         package:lattice         R Documentation

_P_a_r_s_e _T_r_e_l_l_i_s _f_o_r_m_u_l_a

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

     this function is used in trellis functions. Might be useful by
     itself. 'y' and 'g_1,...,g_n' may be missing.

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

     latticeParseFormula(model, data, dimension = 2)

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

   model: the model/formula to be parsed. This can be in either of two
          possible forms, one for 2d and one for 3d formulas,
          determined by the 'dimension' argument. The 2d formulas are
          of the form 'y~x|g_1*...*g_n', and the 3d formulas are of the
          form 'z~x*y|g_1*...*g_n'. In the first form, 'y' may be
          omitted. The conditioning variables 'g_1, ...,g_n' can be
          omitted in either case. 

    data: the environment/dataset where the variables in the  formula
          are evaluated. By default, the environment where the function
          was called from. 

dimension: dimension of the model, see above

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

     returns a list with components 'left, right, left.name, 
     right.name, condition' for 2d, and 'left, right.x, right.y,
     left.name, right.x.name, right.y.name, condition' for 3d.

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

     Saikat DebRoy saikat@stat.wisc.edu

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

     'xyplot', 'Lattice'

