density.plot             package:eiPack             R Documentation

_D_e_n_s_i_t_y _p_l_o_t_s _f_o_r _p_o_p_u_l_a_t_i_o_n _l_e_v_e_l _p_a_r_a_m_e_t_e_r_s

_D_e_s_c_r_i_p_t_i_o_n:

     Generates a density plot for population level quantities of
     interest output by 'lambda.MD', 'lambda.reg', and
     'lambda.reg.bayes'.  For the Bayesian methods, 'density.plot'
     plots the kernel density for the draws.  For the frequentist
     'lambda.reg' method, 'density.plot' plots the canonical Normal
     density conditional on the mean and standard error output by
     'lambda.reg'.

_U_s_a_g_e:

     density.plot(x, by = "column", col, xlim, ylim,
                  main = "", sub = NULL, xlab, ylab,
                  lty = par("lty"), lwd = par("lwd"), ...)

_A_r_g_u_m_e_n_t_s:

       x: output from 'lambda.MD', 'lambda.reg', or 'lambda.reg.bayes'.

      by: character string (defaulting to '"column"') specifying
          whether to panel the density plot by '"row"' or '"column"'
          marginal.

     col: an optional vector of colors, with length corresponding to
          the number of marginals selected in 'by'.  Defaults to
          'rainbow'.

xlim,ylim: optional limits for the x-axis and y-axis, passed to 'plot'.

main,sub: optional title and subtitle, passed to 'plot'.

xlab,ylab: optional labels for the x- and y-axes, passed to 'plot'.

 lty,lwd: optional arguments for line type and line width, passed to
          'lines' and 'plot'.  If either 'lty' or 'lwd' are vectors, it
          must correspond to the number of row or column marginals
          selected.

     ...: additional arguments passed to 'par'.

_V_a_l_u_e:

     A plot with density lines for the selected margin (row or column).

_A_u_t_h_o_r(_s):

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

_S_e_e _A_l_s_o:

     'plot', 'segments', 'par'

