File Exchange

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

version 1.26.0.1 (2.66 KB) by Ryosuke F Takeuchi

### Ryosuke F Takeuchi (view profile)

plot pairwise relationships in matrix

Updated 28 Feb 2020

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
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)));
figure;
pairplot(Fisher(:,2:size(Fisher,2)), {'PW', 'PL', 'SW', 'SL'}, num2cell(num2str(group)), colors, 'bar'), ylabel('Probability')
figure; pairplot(meas, label, species, colors, 'both');

### Cite As

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

Alex Backer

### Alex Backer (view profile)

What should the structure of MEAS be? Thanks.

Ryosuke F Takeuchi

### Ryosuke F Takeuchi (view profile)

> Zeynab Mousavikhamene
I edited the example code above.

Zeynab Mousavikhamene

### Zeynab Mousavikhamene (view profile)

I recieved this error: Error: The construct "Fisher(...end...)" is ambiguous in this context, because "Fisher" cannot be ascertained to be either the name of a variable or of a function. To
make it a variable, assign to it; to allow it to become a function at execution time, replace "end" with a call to LENGTH, SIZE, or NUMEL on the desired array.

Candice Erin

Caleb Stoltzfus

Keisuke Tsunoda

Yusuke Atsumi

### Yusuke Atsumi (view profile)

Ryosuke F Takeuchi

### Ryosuke F Takeuchi (view profile)

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

Carl Witthoft

### Carl Witthoft (view profile)

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

### Warwick (view profile)

Good. Quick and easy to use.