grid.polygon              package:grid              R Documentation

_D_r_a_w _a _P_o_l_y_g_o_n

_D_e_s_c_r_i_p_t_i_o_n:

     This function draws a polygon.  The final point will automatically
     be connected to the initial point.

_U_s_a_g_e:

     grid.polygon(x=c(0, 0.5, 1, 0.5), y=c(0.5, 1, 0.5, 0),
                  default.units="npc",
                  gp=gpar(), draw=TRUE, vp=NULL)

_A_r_g_u_m_e_n_t_s:

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

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

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

      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:

     The '"grob"' object contains an object of class '"polygon"'.

_V_a_l_u_e:

     An object of class '"grob"'.

_A_u_t_h_o_r(_s):

     Paul Murrell

_S_e_e _A_l_s_o:

     Grid, 'viewport'

