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. If any value other
          than a function is specified, no labels are drawn. 

  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'

