gEdit                  package:grid                  R Documentation

_C_r_e_a_t_e _a_n_d _A_p_p_l_y _E_d_i_t _O_b_j_e_c_t_s

_D_e_s_c_r_i_p_t_i_o_n:

     The functions 'gEdit' and 'gEditList' create objects representing
     an edit operation (essentially a list of arguments to 'editGrob').

     The functions 'applyEdit' and 'applyEdits' apply one or more edit
     operations to a graphical object.

     These functions are most useful for developers creating new
     graphical functions and objects.

_U_s_a_g_e:

     gEdit(...)
     gEditList(...)
     applyEdit(x, edit)
     applyEdits(x, edits)

_A_r_g_u_m_e_n_t_s:

     ...: one or more arguments to the 'editGrob' function (for
          'gEdit') or one or more '"gEdit"' objects (for 'gEditList').

       x: a grob (grid graphical object).

    edit: a '"gEdit"' object.

   edits: either a '"gEdit"' object or a '"gEditList"' object.

_V_a_l_u_e:

     'gEdit' returns an object of class '"gEdit"'.

     'gEditList' returns an object of class '"gEditList"'.

     'applyEdit' and 'applyEditList' return the modified grob.

_A_u_t_h_o_r(_s):

     Paul Murrell

_S_e_e _A_l_s_o:

     'grob' 'editGrob'

_E_x_a_m_p_l_e_s:

     grid.rect(gp=gpar(col="red"))
     # same thing, but more verbose
     grid.draw(applyEdit(rectGrob(), gEdit(gp=gpar(col="red"))))

