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"))

