Box and whiskers plot (without statistics toolbox)

버전 1.0.0.0 (13.9 KB) 작성자: Jonathan C. Lansey
Creates nice boxplots from data. You don't need a toolbox. Simple yet fully featured.
다운로드 수: 11.6K
업데이트 날짜: 2015/9/16

라이선스 보기

bplot(X)
This function will create a nice boxplot from a set of data. You don't
need a toolbox.
bplot(D) will create a boxplot of data D, no fuss.
T = bplot(D) If X is a matrix, there is one box per column; if X is a
vector, there is just one box. On each box, the central
mark is the median, the edges of the box are the 25th and
75th percentiles
array 'T' for a legend. You can add the legend as legend(T)

T = bplot(D,x) will plot the boxplot of data D above the 'x' value x

T = bplot(D,y,'horiz') will plot a horizontal boxplot at the 'y' value of y

T = bplot(...,'Property', . . . )
T = bplot(...,'PropertyName',PropertyValue, . . . )

% Jitter feature
The boxplot has a cool jitter feature which will help you view each
outlier separately even if two have identical values. It jitters the
points around the other axis so that you can see exactly how many are
there.

% Examples:
bplot(randn(30,3),'outliers')
bplot(randn(30,3),'color','black');
----
X = round(randn(30,4)*5)/5; % random, with some duplicates
T = bplot(X,'points');
legend(T,'location','eastoutside');

% This function was created for inclusion in my larger nhist function.

인용 양식

Jonathan C. Lansey (2024). Box and whiskers plot (without statistics toolbox) (https://www.mathworks.com/matlabcentral/fileexchange/42470-box-and-whiskers-plot-without-statistics-toolbox), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2010b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0

Minor update