ggfluctuation2 {GGally}R Documentation

Fluctuation plot

Description

Create a fluctuation plot.

Usage

ggfluctuation2(table_data, floor = 0, ceiling = max(table_data$freq, na.rm =
  TRUE))

Arguments

table_data

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

floor

don't display cells smaller than this value

ceiling

max value to compare to

Details

A fluctutation diagram is a graphical representation of a contingency table. This fuction currently only supports 2D contingency tables. The function was adopted from experiemntal functions within GGplot2 developed by Hadley Wickham.

Author(s)

Hadley Wickham h.wickham@gmail.com, Barret Schloerke schloerke@gmail.com

Examples

data(movies, package = "ggplot2")
ggfluctuation2(table(movies$Action, movies$Comedy))
ggfluctuation2(table(movies$Action, movies$mpaa))
ggfluctuation2(table(movies[,c("Action", "mpaa")]))
ggfluctuation2(table(warpbreaks$breaks, warpbreaks$tension))

[Package GGally version 0.5.0 Index]