grid.edit                package:grid                R Documentation

_E_d_i_t _t_h_e _D_e_s_c_r_i_p_t_i_o_n _o_f _a _G_r_i_d _G_r_a_p_h_i_c_a_l _O_b_j_e_c_t

_D_e_s_c_r_i_p_t_i_o_n:

     Changes the value of one or more elements of the list structure
     within a graphical object and redraws the graphical object.

_U_s_a_g_e:

     grid.edit(grob, ..., redraw=TRUE)

_A_r_g_u_m_e_n_t_s:

    grob: An object of class '"grob"'.

     ...: Zero or more element-specifiers, plus a single new value or a
          list of new values. The new value is required.  Each
          specifier may be a single character or numeric value.  

  redraw: A logical value to indicate whether to redraw the graphical
          object.

_D_e_t_a_i_l_s:

     This function acts on the graphical object specified by 'grob' and
     the element-specifiers.  It sets the values in the list structure
     of that graphical object which correspond to the new values.  If
     'redraw' is 'TRUE' it then redraws everything to reflect the
     change.

     Before redrawing, it calls the generic function 'edit.details',
     dispatching on the class of the list structure within the
     graphical object, so that further consequences of the editing
     (such as editing children of the graphical object) can occur.

_V_a_l_u_e:

     None.

_A_u_t_h_o_r(_s):

     Paul Murrell

_S_e_e _A_l_s_o:

     'grid.grob'

_E_x_a_m_p_l_e_s:

     grid.newpage()
     xa <- grid.xaxis(vp=viewport(width=.5, height=.5))
     grid.edit(xa, gp=gpar(col="red"))
     grid.edit(xa, "ticks", gp=gpar(col="green"))

