Shaded Correlation Table
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);
Cite As
Jaspar Cahill (2024). Shaded Correlation Table (https://www.mathworks.com/matlabcentral/fileexchange/30151-shaded-correlation-table), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- AI and Statistics > Statistics and Machine Learning Toolbox > Descriptive Statistics and Visualization >
Tags
Acknowledgements
Inspired by: usercolormap, rotateXLabels( ax, angle, varargin )
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.