ggfluctuation {ggplot}R Documentation

Create a fluctuation diagram.

Description

Usage

ggfluctuation(table, type="size")

Arguments

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

Details

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

Author(s)

Hadley Wickham <h.wickham@gmail.com>

Examples

ggfluctuation(table(warpbreaks[,c(2,3)]))
ggfluctuation(table(warpbreaks[,c(1,3)]))

[Package ggplot version 0.2.2 Index]