ggfluctuation             package:ggplot             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(action=movies$Action, comedy=movies$Comedy))
     ggfluctuation(table(action=movies$Action, rating=movies$mpaa))
     ggfluctuation(table(action=movies$Action, comedy=movies$Comedy), type="colour")
     ggfluctuation(table(warpbreaks[,c(1,3)]))

