Open farr opened 4 years ago
I am coming from seaborn
and am also accustomed to using these sorts of plots (via PairGrid).
That's very neat, thanks! With the existing corner plot I'm also irritated by the line and the coloring.
Maybe single corner recipe with more options instead of multiple alternative recipes is the better the way to go.
A 2d-histogram could be an alternative for the density, but that's only a personal preference.
One of the nice things about seaborn
's PairGrid is that you can customize the upper triangle, diagonal, and lower triangle plots to be whatever you like (e.g. histogram, scatter, kde, etc.).
Both ArviZPlots.jl and CornerPlot.jl do something similar to this. It probably would be good to offer this alternative layout using keyword arguments.
I'm afraid I really don't like the format of
cornerplot
when plotting the outputs of MCMC simulations. Normally I don't care so much about the correlation coefficient of my samples (and I certainly don't want to color the scatterplots by correlation coefficient); ideally, I would like to show both some estimate of the 2D density in the off-diagonal grid squares and also show the samples (as a sanity check of the density estimate).The code below implements something like what I prefer---is there a way to slip this recipe into
StatsPlots.jl
, perhaps with a name that is better thanalternativecornerplot
;)? If others are interested, I'd be happy to file a formal pull request---my personal preference would be just to replace the existingcornerplot
recipe, but of course I understand that there may be reluctance to make such a dramatic change. Any suggestions for good names?The code:
Usage: obtain an MCMC chain, and then
will produce