How to boxplot with multiple datasets and with whiskers representing 5th and 95th percentile ?
조회 수: 2 (최근 30일)
이전 댓글 표시
What is the best way to plot a boxplot with multiple datasets with the whiskers being 5th and 95th percentile ?
I did something like as shown below, however the whiskers do not match the 5th and 95th percentile, calculated separately for sanity check.
data=[a;b;c;d]; % a, b, c, d are four different datasets.
group = [repmat({'2011'}, length(a), 1); repmat({'2012'}, length(b), 1); ... repmat({'2013'}, length(c), 1); repmat({'2014'}, length(d), 1)]
boxplot(data, group,... 'symbol','','factordirection','auto','whisker',0.7193)
Is there any other way to achieve this ?
댓글 수: 0
답변 (1개)
Megha Parthasarathy
2017년 8월 16일
Hi Sayantan,
Refer to this Newsgroup thread that talks about specifying the 5th and 95th percentile in boxplot. Hope this helps.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!