pairplot(meas, label, group, colors, mode)
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)));
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');
Zitieren als
Ryosuke F Takeuchi (2024). pairplot(meas, label, group, colors, mode) (https://www.mathworks.com/matlabcentral/fileexchange/60866-pairplot-meas-label-group-colors-mode), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- AI and Statistics > Statistics and Machine Learning Toolbox > Descriptive Statistics and Visualization > Statistical Visualization > Box Plots >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
pairplot
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.26.0.1 | update Example code |
||
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 |
||
1.0.0.0 |