A Package for Generating Corner Plots (PairPlots.jl)
Corner plots are a useful way of visualizing high dimensional data by presenting a grid of 2D histograms comparing each pair of variables. This package aims to provide a flexible interface for generating these grids, but by default aims to reproduce as closely as possible the output of corner.py.
using Plots, PairPlots a = randn(1000) b = randn(1000) data = (;a, b) corner(data)
This is built on RecipesBase rather than Plots directly, so it should be fairly lightweight. Currently only tested with the GR backend.
Here are a few example plots:
The default is to overplot the datapoints, 2D histograms, and contour plots, but these can be turned on or off. It’s easy to customize each series and even swap out the series types. For instance, the 1D histograms can be changed from
:line just by passing in a new
hist_kwargs. Or, see the README for an example of using 3D wireframes on the off-diagonals.
This package isn’t yet registered since I haven’t settled on a name. The obvious CornerPlots turns out to be taken by the existing CornerPlot.jl, a package with similar goals for Gadfly. Name suggestions welcome!
Edit: now called PairPlots.jl