piermorel / gramm

Gramm is a complete data visualization toolbox for Matlab. It provides an easy to use and high-level interface to produce publication-quality plots of complex data with varied statistical visualizations. Gramm is inspired by R's ggplot2 library.
MIT License
782 stars 221 forks source link

chart.Correlation() function #62

Open lucasfr opened 6 years ago

lucasfr commented 6 years ago

Hello,

This is my first issue here so sorry if I am messing things up or saying something that is not accurate. I really like a function called chart.Correlation(), it is available in a package called PerformanceAnalytics.

It would be great to have something similar on Matlab, however the native function plotmatrix() is far less efficient. Would this be something interesting to include in gramm? I thought about developing it myself but never managed to do so.

The function mentioned is available on the link: https://www.rdocumentation.org/packages/PerformanceAnalytics/versions/1.4.3541/topics/chart.Correlation

piermorel commented 6 years ago

Hi,

There is no graphical output in your example link, but I know how gplotmatrix looks like. It's not the kind of thing gramm is designed to handle in the first place since plotmatrix() has different plots in the different axes (scatters and histograms on the diagonal right?). However it's surely possible to fake from outside gramm using the g(a,b) = gramm() notation to combine unrelated plots. There are lots of examples in examples.m, including some new stuff for more custom placement of axes. Maybe it would be possible to write a wrapper that uses this trick?