File Exchange

image thumbnail

Shaded Correlation Table

version 1.2 (60 KB) by

A correlation table enhanced graphically with shading, with highlighting of upper or lower ranges.

5 Downloads

Updated

View License

ShadedCorrelationTable produces a correlation table for a set of variables, enhanced graphically with shading according to correlation values.

Upper or lower ranges of correlation values may be highlighted through the interface controls. Two methods are provided to do this: a decay function that softens shading of values of less interest, or, shading according to a discrete threshold.

Pearson's linear correlation coefficient is used.

Usage:

ShadedCorrelationTable(x, xLabels);

Example:

load('demo data.mat');
ShadedCorrelationTable(data.x,data.labels);

Comments and Ratings (2)

Jonathan

Hi,

This function seems great. Its not working in Matlab 2016a. It crashes on line 276, because fpos is an empty array:

set(obj.topPanel, 'position', [0 bottomPanelHeight fpos(3) fpos(4)-bottomPanelHeight]);

thanks

pOpcOrn

Seems to work - except that it converts all correlations to positive correlations. I tried to convert it to get the negative values to display as well but didn't manage to.

Updates

1.2

Bug fixed.

MATLAB Release
MATLAB 7.11 (R2010b)
Acknowledgements

Inspired by: usercolormap, rotateXLabels( ax, angle, varargin )

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video