The generalized pairs plot

John W. Emerson, Walton A. Green, Barret Schloerke, Jason Crowley, Dianne Cook, Heike Hofmann, Hadley Wickham

Research output: Contribution to journalArticleResearchpeer-review

39 Citations (Scopus)

Abstract

This article develops a generalization of the scatterplot matrix based on the recognition that most datasets include both categorical and quantitative information. Traditional grids of scatterplots often obscure important features of the data when one or more variables are categorical but coded as numerical. The generalized pairs plot offers a range of displays of paired combinations of categorical and quantitative variables. A mosaic plot, fluctuation diagram, or faceted bar chart may be used to display two categorical variables. A side-by-side boxplot, stripplot, faceted histogram, or density plot helps visualize a categorical and a quantitative variable. A traditional scatterplot is suitable for displaying a pair of numerical variables, but options also support density contours or annotating summary statistics such as the correlation and number of missing values, for example. By combining these, the generalized pairs plot may help to reveal structure in multivariate data that otherwise might go unnoticed in the process of exploratory data analysis. Two different R packages provide implementations of the generalized pairs plot, gpairs and GGally. Supplementary materials for this article are available online on the journal web site.

Original languageEnglish
Pages (from-to)79-91
Number of pages13
JournalJournal of Computational and Graphical Statistics
Volume22
Issue number1
DOIs
Publication statusPublished - 2013
Externally publishedYes

Keywords

  • Exploratory data analysis
  • Grammar of graphics
  • Graphics
  • Multivariate data
  • Scatterplot matrix
  • Visualization

Cite this