rectTree (treemap chart | 矩形树状图)

rectangular tree/treemap chart 矩形树状图

You are now following this Submission

Data = [1;3;2;6;3;7;2;5;6;8;9;2;4;4;6;1;5;9;1;2;6;9;4;1;4];
Class = [3;1;2;5;3;1;2;1;5;5;5;4;4;1;2;3;2;1;5;3;3;2;2;2;5];
CT = rectTree(Data, Class);
CT = CT.draw();
% Randomly generate data and classifications
Data = rand(1,50).*linspace(10,100,50);
Class = randi([1,5],[50,1]);
% Create rectTree(treemap) object
CT=rectTree(Data,Class);
% Change color
CT.ColorOrder = [.91 .45 .50; .96 .63 .64; .97 .80 .61
.10 .71 .68; .03 .54 .74];
% Draw rectTree(treemap)
CT = CT.draw();

Cite As

Zhaoxu Liu / slandarer (2026). rectTree (treemap chart | 矩形树状图) (https://in.mathworks.com/matlabcentral/fileexchange/118515-recttree-treemap-chart), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.1

More details.

1.1.0

More demos

1.0.0