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

