grid.draw package:grid R Documentation _D_r_a_w _a _g_r_i_d _g_r_o_b _D_e_s_c_r_i_p_t_i_o_n: Produces graphical output from a graphical object. _U_s_a_g_e: grid.draw(x, recording=TRUE) _A_r_g_u_m_e_n_t_s: x: An object of class '"grob"' or NULL. recording: A logical value to indicate whether the drawing operation should be recorded on the Grid display list. _D_e_t_a_i_l_s: This is a generic function with methods for grob and gTree objects. The grob and gTree methods automatically push any viewports in a 'vp' slot and automatically apply any 'gpar' settings in a 'gp' slot. In addition, the gTree method pushes and ups any viewports in a 'childrenvp' slot and automatically calls 'grid.draw' for any grobs in a 'children' slot. The methods for grob and gTree call the generic hook functions 'preDrawDetails', 'drawDetails', and 'postDrawDetails' to allow classes derived from grob or gTree to perform additional viewport pushing/popping and produce additional output beyond the default behaviour for grobs and gTrees. _V_a_l_u_e: None. _A_u_t_h_o_r(_s): Paul Murrell _S_e_e _A_l_s_o: 'grob'. _E_x_a_m_p_l_e_s: grid.newpage() ## Create a graphical object, but don't draw it l <- linesGrob() ## Draw it grid.draw(l)