File Exchange

image thumbnail

pairplot(meas, label, group, colors, mode)

version 1.26.0.0 (1.89 KB) by Ryosuke F Takeuchi
plot pairwise relationships in matrix

9 Downloads

Updated 24 Jan 2017

View License

plot pairwise relationships in matrix : similar to 'pairplot' in seaborn (http://seaborn.pydata.org/generated/seaborn.pairplot.html)
easier than 'plotmatrix'
% e.g.
% For stat toolbox users
load fisheriris.mat
colors = lines(3);
label = {'sepal-length', 'sepal-width', 'petal-length', 'petal-width'}
figure; pairplot(meas, label, species, colors, 'both');
% For all users
load Fisher.mat % included in zip
group= Fisher(:,1);
colors = lines(length(unique(group)));
pairplot(Fisher(:,2:end), {'PW', 'PL', 'SW', 'SL'}, num2cell(num2str(group)), colors, 'bar')
figure; pairplot(meas, label, species, colors, 'both');

Cite As

Ryosuke F Takeuchi (2019). pairplot(meas, label, group, colors, mode) (https://www.mathworks.com/matlabcentral/fileexchange/60866-pairplot-meas-label-group-colors-mode), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (7)

Thanks for your advise.
I added "Fisher.ma"t for users who don't have Stats Toolbox.

The file "fisheriris.mat" belongs to the Stats Toolbox. You should either state that in the comments or provide a sample data matrix in your package for us poor folk who don't have that Toolbox.

Warwick

Good. Quick and easy to use.

Updates

1.26.0.0

bug fixed : auto color definition

1.25.0.0

add sample data of fisher iris

1.23.0.0

add xlim for each scatter

1.22.0.0

add 'bar' option for old version of MATLAB

1.21.0.0

bug fixed about 'both' mode & example code

1.2.0.0

- add cdf plot & small cdf plot mode

1.1.0.0

bug fixed

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux