www.gusucode.com > stats 源码程序 matlab案例代码 > stats/ParallelCoordinatesPlotWithQuantileValuesExample.m
%% Parallel Coordinates Plot with Quantile Values %% % Load the Fisher iris sample data. load fisheriris %% % The data contains four measurements (sepal length, sepal width, petal % length, and petal width) from three species of iris flowers. The matrix % |meas| contains all four measurements for each of 150 flowers. The cell % array |species| contains the species name for each of the 150 flowers. %% % Create a cell array that contains the name of each measurement variable % in the sample data. labels = {'Sepal Length','Sepal Width','Petal Length','Petal Width'}; %% % Create a parallel coordinates plot using the measurement data in |meas|. % Plot only the median, 25 percent, and 75 percent quartile values for each % group identified in |species|. Label the horizonal axis using the % variable names. parallelcoords(meas,'group',species,'labels',labels,... 'quantile',.25) %% % The plot shows the median values for each group as a solid line and the % quartile values as dotted lines of the same color. For example, the solid % blue line shows the median value measured for each variable on |setosa| % irises. The dotted blue line below the solid blue line shows the 25th % percentile of measurements for each variable on |setosa| irises. % The dotted blue line above the solid blue line shows the 75th percentile % of measurements for each variable on |setosa| irises.