

rug {base}                                   R Documentation

_A_d_d _a _R_u_g _t_o _a _P_l_o_t

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

     Adds a rug representation (1-d plot) of the data to the
     plot.

_U_s_a_g_e_:

     rug(x, ticksize=0.03, side=1, lwd=0.5)

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

       x: A numeric vector

ticksize: The length of the ticks making up the `rug'. Posi-
          tive lengths give inwards ticks.

    side: On which side of the plot box the rug will be
          plotted. Normally 1 (bottom) or 3 (top).

     lwd: The line width of the ticks.

_A_u_t_h_o_r_(_s_)_:

     B.D. Ripley

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

     `jitter' which you may want for ties in `x'.

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

     data(faithful)
     attach(faithful)
     plot(density(eruptions, bw=0.15))
     rug(eruptions)

