picturePaths            package:grImport            R Documentation

_D_r_a_w _I_n_d_i_v_i_d_u_a_l _P_i_c_t_u_r_e _P_a_t_h_s

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

     This function individually draws each path from a '"Picture"'
     object.

_U_s_a_g_e:

     picturePaths(picture, nr, nc,
                  col = "black",
                  fill = "light grey",
                  freeScales = FALSE,
                  xscale = NULL, yscale = NULL,
                  label = function(n) {
                    tg <- textGrob(n, x = 0, y = 0,
                                   just = c("left", "bottom"),
                                   gp = gpar(fontsize = 6))
                    grid.rect(x = 0, y = 0,
                              height = unit(6, "points"),
                              width = grobWidth(tg),
                              just = c("left", "bottom"),
                              gp = gpar(fill = "white"))
                    grid.draw(tg)
                  }, use.gc = TRUE)

_A_r_g_u_m_e_n_t_s:

 picture: A '"Picture"' object. 

      nr: Number of rows of paths to draw. 

      nc: Number of columns of paths to draw. 

     col: Colour of border drawn around each path. 

    fill: Background colour drawn behind each path. 

freeScales: A boolean indicating whether each path should be drawn on
          its own scale.  If 'FALSE', all paths are drawn on a common
          scale.  If 'TRUE', 'xscale' and 'yscale' are ignored.

  xscale: A numeric vector of length two indicating the minimum and
          maximum on the x-scale.

  yscale: A numeric vector of length two indicating the minimum and
          maximum on the y-scale.

   label: Function to draw a label on each path. 

  use.gc: A boolean indicating whether to use the graphical parameter
          information in the path. 

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

     Paul Murrell

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

     'grid.picture'

