Boxplot Data
이전 댓글 표시
I have a very large set of data with many groups and subgroups. The boxplot command works well for visualization of the data. I was wondering if there was an easy way to extract the data displayed without actually doing a manual calculation of each parameter. For example, I wish boxplot provided a set of function output variables that report the values used to plot each box (mean, interquartile range, outliers, etc.)
Does anyone know of an easy way to extract this information automatically?
I know that I can manually write a script to calculate each of the values...just wondering if there is a shortcut.
채택된 답변
추가 답변 (2개)
Oleg Komarov
2011년 6월 23일
It way easier to calculate the stats:
min
max
quantile(x,[.25 .5 .75])
mean
댓글 수: 2
Rania Rayyes
2020년 1월 8일
편집: Rania Rayyes
2020년 1월 8일
median and not mean, and the upper bound is not max, max is outlier here
Aymen ABID
2021년 3월 19일
편집: Aymen ABID
2021년 3월 19일
@Rania Rayyes quabtile .25 .5 .75 gives Q1,Q2 (median),Q3
median with isnan give the median
zahra zol
2017년 4월 15일
1 개 추천
i am desperately looking for the same thing...
댓글 수: 1
Samuel Geurts
2017년 9월 14일
편집: Samuel Geurts
2017년 9월 14일
if you open de handle of the boxplot you can achieve that information, but that is not easier than calculating it.
h = boxplot(x)
handle(h)
카테고리
도움말 센터 및 File Exchange에서 Exploration and Visualization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!