boxplotの箱ひ​げ図描画で、外れ値を​考慮せずに最小値とし​て描くことは可能でし​ょうか?

外れ値の判定をせずに最大値・最小値などとみなして箱ひげ図のプロットをしたいのですが、boxchart関数でこれは可能でしょうか?
よろしくお願い致します。

 Réponse acceptée

Megumi Fukuda
Megumi Fukuda le 7 Déc 2021

0 votes

boxplot関数では、Whiskerというオプションがあり、このパラメータを変えることでwhiskerの長さを変更できます。
data = rand(20, 1);
data(21) = 10;
boxplot(data) %そのままプロットすると、data(21)は外れ値としてプロットされる
boxplot(data, 'Whisker', 50)
boxchartだとWhiskerオプションはなさそうですね。

1 commentaire

KK
KK le 7 Déc 2021
やはりtoolboxは必要のようですね。。。
ご回答ありがとうございました!

Connectez-vous pour commenter.

Plus de réponses (0)

Produits

Version

R2021b

Tags

Community Treasure Hunt

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

Start Hunting!