errbar                package:sfsmisc                R Documentation

_S_c_a_t_t_e_r _P_l_o_t _w_i_t_h _E_r_r_o_r _B_a_r_s

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

     Draws a scatter plot, adding vertical ``error bars'' to all the
     points.

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

     errbar(x, y, yplus, yminus, cap = 0.015,
            xlab= deparse(substitute(x)),
            ylab= deparse(substitute(y)), ...)

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

       x: vector of x values.

       y: vector of y values.

   yplus: vector of y values: the tops of the error bars.

  yminus: vector of y values: the bottoms of the error bars.

     cap: the width of the little lines at the tops and bottoms of the
          error bars in units of the width of the plot.  Default is
          0.015.

xlab, ylab: axis labels for the plot, as in 'plot.default'.

     ...: Graphical parameters (see 'par') may also be supplied as
          arguments to this function.

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

     Originally Charles Geyer, U.Chicago, early 1991; then Martin
     Mchler.

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

     'errbar' in package 'Hmisc' is similar.

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

     y <- rnorm(10); d <- 1 + .1*rnorm(10)
     errbar(1:10, y, y + d, y - d, main="Error Bars example")

