Customizing with boxplot? 2 quick questions

1 回表示 (過去 30 日間)
Jesse
Jesse 2015 年 11 月 26 日
コメント済み: Jesse 2015 年 11 月 26 日
Greetings all,
I have two quick questions on box plots. So I have a boxplot (see attached for an example). First, is there any way to plot the mean as a dot in each of the boxes, as well as the mode as a square type also in the boxes? Right now the line in this plot is of the mean of the array called "Sigma1" (y-axis), so I guess it would be a general mean. Here's that line of code (if it helps):
boxplot(OutputMatrixValid(1:numtrue,48),OutputMatrixValid(1:numtrue,4))
plot(xlim,[mean_Sigma1,mean_Sigma1],'r:','LineWidth',2)
where OutputMatrixValid(1:numtrue,48) is Sigma1 values, and OutputMatrixValid(1:numtrue,4) is the "Bumpy Factor" (x-axis). I know the plot line in there isn't correct but I was giving it an honest shot.
Second question with this boxplot, per the help files the whiskers are defaulted to 1.5 * the inner quartiles. Correct me if I am wrong but the inner quartiles, as I understand it, are the 25% and 75% values. Is there any way to set the whisker to a 95& CI index, such that one index is at 2.5%, and the other is 97.5%?
Thanks! Jesse
  1 件のコメント
Jesse
Jesse 2015 年 11 月 26 日
Boxplot now attached!

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeExploration and Visualization についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by