histStack            package:geneplotter            R Documentation

_S_t_a_c_k_e_d _h_i_s_t_o_g_r_a_m

_D_e_s_c_r_i_p_t_i_o_n:

     Stacked histogram

_U_s_a_g_e:

     histStack(x, breaks, breaksFun=paste, ylab="frequency", ...) 

_A_r_g_u_m_e_n_t_s:

       x: A list of numeric vectors.

  breaks: Histogram breaks, as in 'hist'

breaksFun: Function, can be used to control the formatting of the bin
          labels. See example.

    ylab: Label for the Y-axis on the plot

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

_D_e_t_a_i_l_s:

     The function calls 'hist' for each element of 'x' and plots the
     frequencies as a stacked barplot using 'barplot' with
     'beside=FALSE'.

_V_a_l_u_e:

     The function is called for its side effect, producing a barplot on
     the active graphics device. It returns the result of the call to
     'barplot'.

_A_u_t_h_o_r(_s):

     Wolfgang Huber <URL: http://www.ebi.ac.uk/huber>

_E_x_a_m_p_l_e_s:

       x    <- list(rnorm(42), rnorm(42)+2)
       br   <- seq(-3, 5, length=13)
       cols <- c("#1D267B", "#ceffc0")
       histStack(x, breaks=br, col=cols)

       histStack(x, breaks=br, col=cols,
                 breaksFun=function(z) paste(signif(z, 3)))

