Correlation Matrix Scatterplot

Produces a correlation matrix scatterplot with least-squared fitted lines.
1.7K Downloads
Updated 5 May 2020

View License

This function creates multiple bivariate scatterplots similar to SPSS's Matrix Scatterplot but without duplicate relationships. A linear fitted line, the correlation coefficient and the associated p-value are included in each plot. It is helpful when you want to explore the relationships among several variables.

Cite As

John Chow (2024). Correlation Matrix Scatterplot (https://www.mathworks.com/matlabcentral/fileexchange/53043-correlation-matrix-scatterplot), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Scatter Plots in Help Center and MATLAB Answers
Acknowledgements

Inspired by: tight_subplot(Nh, Nw, gap, marg_h, marg_w)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
2.0.0.01

(1) Ignore data pairs with NaNs, (2) Sample size added on plots, and (3) No statistics toolbox needed. (May 2020)

2.0.0.0

(1) Ignore data pairs with NaNs, (2) Sample size added on plots, and (3) No statistics toolbox needed. (May 2020)

1.0.0.0