mosaicdata              package:ggplot              R Documentation

_M_o_s_a_i_c _d_a_t_a

_D_e_s_c_r_i_p_t_i_o_n:

     Construct a data frame for producing a mosaic plot

_U_s_a_g_e:

     mosaicdata(df, direction, offset, xrange=c(0,1), yrange=c(0,1))

_A_r_g_u_m_e_n_t_s:

      df: data frame, with values in last column

direction: character vector of direction ("v" or "h") to split in

  offset: vector of offsets to use

  xrange: xrange

  yrange: yrange

_D_e_t_a_i_l_s:

     Take a data frame, with last column value and then recursively
     create a data frame that reflects the position of each cell

_A_u_t_h_o_r(_s):

     Hadley Wickham <h.wickham@gmail.com>

_E_x_a_m_p_l_e_s:

