grid.lines               package:grid               R Documentation

_D_r_a_w _L_i_n_e_s _i_n _a _G_r_i_d _V_i_e_w_p_o_r_t

_D_e_s_c_r_i_p_t_i_o_n:

     These functions create and draw a series of lines.

_U_s_a_g_e:

     grid.lines(x = unit(c(0, 1), "npc", units.per.obs),
            y = unit(c(0, 1), "npc", units.per.obs), 
            default.units = "npc", units.per.obs = FALSE, name = NULL,
            gp=gpar(), draw = TRUE, vp = NULL)
     linesGrob(x = unit(c(0, 1), "npc", units.per.obs),
            y = unit(c(0, 1), "npc", units.per.obs), 
            default.units = "npc", units.per.obs = FALSE, name = NULL,
            gp=gpar(), vp = NULL)

_A_r_g_u_m_e_n_t_s:

       x: A numeric vector or unit object specifying x-values.

       y: A numeric vector or unit object specifying y-values.

default.units: A string indicating the default units to use if 'x' or
          'y' are only given as numeric vectors.

units.per.obs: A logical value to indicate whether each individual (x,
          y) location has its own unit(s) specified.

    name: A character identifier. 

      gp: An object of class 'gpar', typically the output from a call
          to the function 'gpar'.  This is basically a list of
          graphical parameter settings.

    draw: A logical value indicating whether graphics output should be
          produced.

      vp: A Grid viewport object (or NULL).

_D_e_t_a_i_l_s:

     Both functions create a lines grob (a graphical object describing
     lines), but only 'grid.lines' draws the lines (and then only if
     'draw' is 'TRUE').

_V_a_l_u_e:

     A lines grob.  'grid.lines' returns the value invisibly.

_A_u_t_h_o_r(_s):

     Paul Murrell

_S_e_e _A_l_s_o:

     Grid, 'viewport'

