alexteghipco / Correlogram

Create beautiful tiles of scatterplots between variables in MATLAB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Creating Correlograms (work in progress)

DOI

Details and better documentation forthcoming...this matlab package creates correlograms for symmetric and asymmetric correlation matrices.

Here is an example where the upper triangle shows data for healthy controls and the lower triangle shows data for stroke patients. Note, matlab does not internally support scatterplots with trendlines/CIs, error bars around samples on a scatterplot, histogram 'patches' or differing upper/lower triangles in scatterplots and/or scatterplot matrices. correlogram.m and quickScatter.m support combining these elements in one plot. Note also the consistent color schemes between lower and upper tiangles with some deviation in color to distinguish the two sets of data.



Here is another example for a rectengular matrix. Here, we pull out the histograms and place them at the edges of the correlogram. Correlogram interpolates between 3 colors to make a stark colormap. It also creates 2D colormaps by interpolating between two 1D colormaps, like shown in the plots below.



See main.m for some examples of usage (note, this code is just how I've used Correlogram.m for some projects but may be helpful for understanding how to organize your data)

Papers that have used this package (please consider citing if you use this): Newman-Norlund, R. D., Gibson, M., Johnson, L., Teghipco, A., Rorden, C., Bonilha, L., & Fridriksson, J. Cerebellar Atrophy and Language Processing in Chronic Left-Hemisphere Stroke. Neurobiology of Language, 1-53.

About

Create beautiful tiles of scatterplots between variables in MATLAB

License:GNU General Public License v3.0


Languages

Language:MATLAB 100.0%