svyhist                package:survey                R Documentation

_H_i_s_t_o_g_r_a_m_s

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

     Draws a histogram weighted by the sampling weights.

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

     svyhist(formula, design, xlab = NULL, main = NULL,
       probability=TRUE,freq=!probability, ...)

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

 formula: One-sided formula giving the variable to plot

  design: A survey design object

    xlab: x-axis label

    main: Main title

probability,freq: Y-axis is probability density or frequency

     ...: Other arguments to 'hist'

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

     'svyplot'

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

     data(api)
     dstrat <- svydesign(id = ~1, strata = ~stype, weights = ~pw, data = apistrat, 
         fpc = ~fpc)
     svyhist(~ell, dstrat, main="English language learners",col="peachpuff")

