mdf                  package:ggplot                  R Documentation

_M_o_s_a_i_c _p_l_o_t

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

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

     mdf(formula=~., df, direction, offset, xrange=c(0,1), yrange=c(0,1))

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

 formula: 

      df: 

direction: 

  offset: 

  xrange: 

  yrange: 

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

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

     Hadley Wickham <h.wickham@gmail.com>

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

     library(grid)
     tt <- as.data.frame(Titanic)
     mdf(~ Class, tt)  # counts
     mdf(Freq ~ Class, tt) # with a weighting variable
     mdf(Freq ~ Class + Sex + Age, tt)
     mdf(Freq ~ Class + Sex + Age, tt, direction=c("v","h","v"))

