Abstract:
|
The data analysis blog FiveThirtyEight commissioned a poll in 2014 seeking insight on common aggravating behaviors on flights to judge the perceived level of rudeness of those actions. Using a new way to visualize categorical data in R with gglot2, I attempt to further examine the unspoken social contract we all encounter when we fly. Visualizing multidimensional data can often be difficult due to a subtle complexity that arises from the hierarchical structure of the counts and proportions that are important for understanding the multivariate discrete distributions. In addition, graphical methods for categorical data and mixtures of qualitative and quantitative data are not well developed in comparison to what is available for numeric variables. Mosaic plots provide one possibility of visualizing multidimensional data and can be a powerful and easy option. However, while mosaic plots have been implemented in a variety of packages, the ordinary grammar of graphics does not support mosaic plots. With the R package ggmosaic, a custom ggplot2 geom designed for mosaic plots is implemented. In addition, ggmosaic creates plots that can be converted into interactive plotly graphs.
|