medianPlot(data, varargin)

Plots data with median, lower and upper quartile as well as the data points.
42 Downloads
Updated 23 Jan 2018

View License

Plots data with median, lower and upper quartile as well as the data points.
'faceColor' -> Color of the boxes. Standard: [0.4 0.4 0.4]
'medianColor' -> Color of median line. Standard: [0 0 0]
'icrColor' -> Color of the inter quartile range lines. Standard: [0 0 0]
'dataPointsColor' -> Color of data points. Standard: [0.5 0.5 0.5]
'showBox' -> Determines if boxes are drawn. Standard: 'true'
'label' -> Label of x-axis. Standard: '1', '2', ...

EXAMPLE
data = rand(10,4);
medianPlot(data, 'faceColor', [0 0.4 0.4], 'icrColor', [1 0 0], 'showBox', true, 'label', {'tea', 'beer', 'wine', 'coke'})

latest update: 23.01.2018

Cite As

Steffen Hacker (2026). medianPlot(data, varargin) (https://www.mathworks.com/matlabcentral/fileexchange/65752-medianplot-data-varargin), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2017a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Line Plots in Help Center and MATLAB Answers
Version Published Release Notes
1.1.0.0

added functionality
added parameters of plot

1.0.0.0