ngon                 package:maptree                 R Documentation

_O_u_t_l_i_n_e _o_r _F_i_l_l _a _R_e_g_u_l_a_r _P_o_l_y_g_o_n

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

     Draws a regular polygon at specified coordinates as an outline or
     shaded.

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

       ngon (xydc, n=4, type=1)

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

    xydc: four element vector with x and y coordinates  of center, d
          diameter in mm, and c color.

       n: number of sides for polygon (>8 => circle).

    type: type=1 => interior filled, type=2 => edge, type=3 => both.

_D_e_t_a_i_l_s:

     Uses `polygon' to draw shaded polygons and  `lines' for outline. 
     If n is odd, there is a vertex at (0, d/2), otherwise the midpoint
     of a side is at (0, d/2).

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

     Invisible.

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

     Denis White, white.denis@epa.gov

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

     `polygon',  `lines',  `map.key',  `map.groups'

_E_x_a_m_p_l_e_s:

       plot (c(0,1), c(0,1), type="n")
       ngon (c(.5, .5, 10, "blue"), n=3)
       apply (cbind (runif(8), runif(8), 6, 2), 1, ngon)

