Boxplot with vectors of different lengths

Hi, I have 3 vectors of different lengths and want to plot them on the same boxplot.
My variables are:
PR = 24 datapoints PU = 18 data points PS = 6 data points
How do I do this?
Thanks!

回答 (1 件)

Marc
Marc 2016 年 2 月 18 日

0 投票

You can take a look at boxplot2 from GitHub which I think handles this.
Otherwise, a simple work around is to pad your vectors with NaNs to equal length. Boxplot in the stats toolbox ignores NaNs....

1 件のコメント

Randy Diaz
Randy Diaz 2018 年 10 月 20 日
Hey Marc, could you please elaborate

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeCreating, Deleting, and Querying Graphics Objects についてさらに検索

質問済み:

2016 年 2 月 18 日

コメント済み:

2018 年 10 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by