Dummy dataset in boxplot

조회 수: 1 (최근 30일)
Marcus Glover
Marcus Glover 2015년 9월 15일
답변: Marcus Glover 2015년 9월 15일
I have a set of data that I am presenting with the boxplot function. I would like to compare to a national average. I know the national average's median, 75th and 25th percentiles, and I would like to plot my data next to a boxplot showing those values for comparison. Is there a way to create a dummy boxplot to do this? Will I have to create an entire fake distribution?

채택된 답변

Marcus Glover
Marcus Glover 2015년 9월 15일
Ok, as usual, asking the question has been the trick.
I just created a dataset with 4 entries of the 25th percentile, 2 medians, and 4 of the 75th percentile. Works like a charm.

추가 답변 (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