| ggfluctuation2 {GGally} | R Documentation |
Create a fluctuation plot.
ggfluctuation2(table_data, floor = 0, ceiling = max(table_data$freq, na.rm = TRUE))
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 |
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.
Hadley Wickham h.wickham@gmail.com, Barret Schloerke schloerke@gmail.com
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))