ggduo: Pairs plot for two group data
The R package 'GGally' provides several amalgam plots that build on the basic 'ggplot2' plotting system. Functions produce multivariate plots like generalized scatterplot matrices, and parallel coordinate plots are provided, network plots, survival models, and glyph maps for spatiotemporal data. This new work introduces a function, ggduo, to produce generalized plots for two groups of variables (e.g. a matrix of X variables and a matrix of Y variables), as might be modeled by multivariate regression, canonical correlation analysis or even multivariate time series. It builds on the structure of the ggmatrix functions used to produce the generalized pairs plot. The new function will help analysts to look at their data to support better modeling.