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"))))

