ggfluctuation            package:ggplot2            R Documentation

_F_l_u_c_t_u_a_t_i_o_n _p_l_o_t

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

     Create a fluctuation plot.

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

     ggfluctuation(table, type="size", floor=0, ceiling=max(table$freq, na.rm=TRUE))

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

   table: a table of values, or a data frame with three columns, the
          last column being frequency

    type: size, or colour to create traditional heatmap

   floor: don't display cells smaller than this value

 ceiling: 

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

     A fluctutation diagram is a graphical representation of a
     contingency table.  This fuction currently only supports 2D
     contingency tabless but extension to more should be relatively
     straightforward.

     With the default size fluctuation diagram, area is proportional to
     the count (length of sides proportional to sqrt(count))

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

     Hadley Wickham <h.wickham@gmail.com>

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

     ggfluctuation(table(movies$Action, movies$Comedy))
     ggfluctuation(table(movies$Action, movies$mpaa))
     ggfluctuation(table(movies$Action, movies$Comedy), type="colour")
     ggfluctuation(table(warpbreaks$breaks, warpbreaks$tension))

