home *** CD-ROM | disk | FTP | other *** search
-
- _D_r_a_w _a _R_e_c_t_a_n_g_l_e
-
- rect(xleft, ybottom, xright, ytop, ...)
-
- _A_r_g_u_m_e_n_t_s:
-
- xleft : a vector (or scalar) of left x positions.
-
- ybottom : a vector (or scalar) of bottom y positions.
-
- xright : a vector (or scalar) of right x positions.
-
- ytop : a vector (or scalar) of top y positions.
-
- ... : graphical parameters passed to set.pars.
-
- _D_e_s_c_r_i_p_t_i_o_n:
-
- rect draws a rectangle (or sequence of rectangles) with
- the given coordinates. It is a primitive funciton used
- in hist. The value supplied, ie. xleft, ..., are rela-
- tive to the current plotting region. If the x-axis goes
- from 100 to 200 then xleft must be larger than 100 and
- xright must be less than 200.
-
- _E_x_a_m_p_l_e_s:
-
- # set up the plot region but don't plot
- plot(c(100, 200), c(300, 400), type="n")
-
- # draw a rectangle with bottom left (150,320)
- # and top right (177,380)
- rect(150,320,177,380)
-
-