Grid                  package:grid                  R Documentation

_G_r_i_d _G_r_a_p_h_i_c_s

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

     General information about the grid graphics package.

_D_e_t_a_i_l_s:

     Grid graphics provides an alternative to the standard R graphics.
     The user is able to define arbitrary rectangular regions (called
     _viewports_) on the graphics device and define a number of
     coordinate systems for each region.  Drawing can be specified to
     occur in any viewport using any of the available coordinate
     systems.

     Grid graphics and standard R graphics do not mix!

     Type 'library(help = grid)' to see a list of (public) Grid
     graphics functions.

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

     Paul Murrell

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

     'viewport', 'grid.layout', and 'unit'.

_E_x_a_m_p_l_e_s:

     ## Diagram of a simple layout 
     grid.show.layout(grid.layout(4,2,
                          heights=unit(rep(1, 4),
                                       c("lines", "lines", "lines", "null")),
                          widths=unit(c(1, 1), "inches")))
     ## Diagram of a sample viewport
     grid.show.viewport(viewport(x=0.6, y=0.6,
                                 w=unit(1, "inches"), h=unit(1, "inches")))
     ## A flash plotting example
     grid.multipanel(vp=viewport(0.5, 0.5, 0.8, 0.8))

