roundRect             package:RGraphics             R Documentation

_D_r_a_w _a _r_e_c_t_a_n_g_l_e _w_i_t_h _r_o_u_n_d_e_d _c_o_r_n_e_r_s

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

     Draw a rectangle with rounded corners.

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

     roundRect <- function(x=unit(0.5, "npc"), 
                           y=unit(0.5, "npc"), 
                           width=unit(1, "npc"), 
                           height=unit(1, "npc"), 
                           r=unit(0.1, "snpc"),
                           just="centre",
                           name=NULL, gp=NULL, vp=NULL) 
     grid.roundRect(...) 

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

x, y, width, height: The location and size of the rectangle.

       r: The radius of the rounded corners.

    just: The justification of the rectangle relative to its location.

    name: A name to identify the grob.

      gp: Graphical parameters to apply to the grob.

      vp: A viewport object or 'NULL'.

     ...: Arguments to be passed to 'roundRect'.

