use boxplot to show distribution of values for a range of response variables

16 ビュー (過去 30 日間)
Poison Idea fan
Poison Idea fan 2022 年 9 月 21 日
回答済み: Pravarthana P 2022 年 9 月 29 日
I have a timetable where the first column is the response and the rest are variables that I'm using as predictiors.
I would like to make a box plot that shows the distribution of predictor values over the bin of response values.
The binID is the group ID for each response variable. But I'm not sure how to get the box plot to have the bin ranges on the x-axis and the regress_table.x0_3_um_count_a on the y-axis.
load regress_table.mat
[~,~,binID] = histcounts(regress_table.SAE,[1,1.4,1.8,2.2,2.6,3])
binID = 2332×1
1 2 1 2 2 2 2 2 5 4

回答 (1 件)

Pravarthana P
Pravarthana P 2022 年 9 月 29 日
Hi Poison Idea fan,
I understand that you are trying to box plot series of data in y-axis against time data in x-axis.
The following documentation links can be helpful to understand how to group boxplot:
The “boxplotGroup” function can be utilized by downloading it from File Exchange. For any queries on the same, kindly head to the discussion tab of the file exchange link.
I hope this information helps you!

タグ

製品


リリース

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by