jitterplot

Function to plot individual data points as well as the mean and standard deviation in one figure

You are now following this Submission

INTRODUCTION
Function to create jitter plots showing the mean, mean - 1 standard
deviation, mean + 1 standard deviation and the distribution of the
individual data points

INPUT
jitterplot(data,y)
data: N x 1 vector containing the data points to be plotted
y: N x 1 vector representing the corresponding groups of the data
points

jitterplot(...,'meanWidth',meanWidthValue)
Value for the width of the line to indicate the mean in the plot. Default
is 0.2

jitterplot(...,'stdWidth',stdWithValue)
Value for the width of the lines to indicate the standard deviation in
the plot. Default is 0.3

jitterplot(...,'scatterSize',scatterSizeValue)
Value for the marker size to show the individual data points. Default
value is 20

OUTPUT
h: Figure handle

Created: 8/7/2020
Version: 1.0
Last update: 8/7/2020
Developer: Joris Meurs

Cite As

Joris Meurs (2026). jitterplot (https://ch.mathworks.com/matlabcentral/fileexchange/77885-jitterplot), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0