cover.plot              package:eiPack              R Documentation

_U_n_i_t-_l_e_v_e_l _c_o_v_e_r_a_g_e _p_l_o_t_s _f_o_r _b_e_t_a _p_a_r_a_m_e_t_e_r_s _f_r_o_m _M_D _E_I _m_o_d_e_l

_D_e_s_c_r_i_p_t_i_o_n:

     Generates a plot of central credible intervals for the unit-level
     beta parameters from the Multinomial-Dirichlet ecological
     inference model (see 'ei.MD.bayes').

_U_s_a_g_e:

     cover.plot(object, row, column, x = NULL, CI = 0.95,
               medians = TRUE, col = NULL, ylim = c(0,1), 
               ylab, lty = par("lty"), lwd = par("lwd"), ...) 

_A_r_g_u_m_e_n_t_s:

  object: output from 'ei.MD.bayes'

     row: a character string specifying the row marginal of interest

  column: a character string specifying the column marginal of interest

       x: an optional covariate to index the units along the x-axis

      CI: a fraction between 0 and 1 (defaults to 0.95), specifying the
          coverage of the central credible interval to be plotted for
          each unit

 medians: a logical value specifying whether to plot the median
          (defaults to 'TRUE').  If 'medians = FALSE', the medians are
          not plotted.

     col: an optional vector of colors to be passed to 'plot' and
          'segments'.  If 'col' is of length two, then the first color
          is used for 'plot' and the second for 'segments'.

    ylim: an optional range for the y-axis (defaults to 'c(0,1)').

    ylab: an optional label for the y-axis (defaults to 'Proportion of
          row in column').

     lty: an optional line type passed to 'segments'.

     lwd: an optional line width argument passed to 'segments'.

     ...: additional arguments passed to 'plot'.

_V_a_l_u_e:

     A plot with vertical intervals indicating the central credible
     intervals for each ecological unit.

_A_u_t_h_o_r(_s):

     Olivia Lau <olivia.lau@post.harvard.edu>

_S_e_e _A_l_s_o:

     'plot', 'segments', 'par'

