grid.segments              package:grid              R Documentation

_D_r_a_w _L_i_n_e _S_e_g_m_e_n_t_s

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

     These functions create and draw line segments.

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

     grid.segments(x0 = unit(0, "npc"), y0 = unit(0, "npc"),
                   x1 = unit(1, "npc"), y1 = unit(1, "npc"),
                   default.units = "npc", units.per.obs = FALSE,
                   name = NULL, gp = gpar(), draw = TRUE, vp = NULL)
     segmentsGrob(x0 = unit(0, "npc"), y0 = unit(0, "npc"),
                   x1 = unit(1, "npc"), y1 = unit(1, "npc"),
                   default.units = "npc", units.per.obs = FALSE,
                   name = NULL, gp = gpar(), vp = NULL)

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

      x0: Numeric indicating the starting x-values of the line
          segments. 

      y0: Numeric indicating the starting y-values of the line
          segments. 

      x1: Numeric indicating the stopping x-values of the line
          segments. 

      y1: Numeric indicating the stopping y-values of the line
          segments.

default.units: A string. 

units.per.obs: A boolean indicating whether distinct units are given
          for each x/y-value. 

    name: A character identifier. 

      gp: An object of class 'gpar'. 

    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 segments grob (a graphical object
     describing segments), but only 'grid.segments' draws the segments
     (and then only if 'draw' is 'TRUE').

_V_a_l_u_e:

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

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

     Paul Murrell

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

     Grid, 'viewport'

