barploterrbar             package:prada             R Documentation

_B_a_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:

     Barplot with error bars.

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

     barploterrbar(y, yl, yh, barcol="orange", errcol="black", horiz=FALSE,
     w=0.2, ylim=c(0, max(yh)*1.05), ...)

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

       y: Numeric vector.

      yl: Numeric vector of same length as y.

      yh: Numeric vector of same length as y.

  barcol: Color of the bars.

  errcol: Color of the error bars.

   horiz: Logical. As in 'barplot'.

       w: The plot limits. The default value wil cause the error bars
          to fit nicely on the plotting device.

    ylim: Size of the error bar ticks.

     ...: Further arguments that get passed on to 'barplot'.

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

     The function calls 'barplot' with 'y' and decorates it with error
     bars according to 'yl' and 'yh'.

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

     The function is called for its side effect, producing a plot.

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

     Wolfgang Huber <URL: http://www.dkfz.de/abt0840/whuber>

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

     'barplot'

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

       y <- matrix(runif(80), ncol=5)
       ym <- apply(y, 2, mean)
       dy <- apply(y, 2, sd)*2/sqrt(nrow(y))
       barploterrbar(ym, ym-dy, ym+dy, barcol="#0000c0", errcol="orange",
         ylim=c(0, max(ym+dy)))

