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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Exploration and Visualization에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by