How do I overlap boxplots on top of each other for the same x-axis?

10 views (last 30 days)
Raymond Lam
Raymond Lam on 6 Jan 2022
Answered: dpb on 6 Jan 2022
I got 2 tests, 24 conditions for each test. Instead of producing two box plots with 24 vectors of data for each test, I would like to produce a single box plot comparing the statistics (mean, max, min, s.d.) of each condition between the two tests (by overlapping one box plot over another). How can I do that?
Thanks in advance!

Answers (1)

dpb
dpb on 6 Jan 2022
Use boxchart and the grouping by color option probably best builtin solution...

Community Treasure Hunt

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

Start Hunting!

Translated by