How to show mean value instead of median value in box plot?
Physicist92
Hi all,
Is there any way to show only mean value (as line) in box plot and not to show median value?
Hi all,
Is there any way to show only mean value (as line) in box plot and not to show median value?
With the box plot, right click and select modify box plot appliance. Go to the markers tab and select show mean (last item) and customize to your hearts content.
Andy
May 20, 2019 at 05:16 pm - Permalink
I set line thickness of median to zero, so now median line is not shown. But I didn't find how to show mean as line, not as marker.
May 20, 2019 at 05:59 pm - Permalink
That isn't an option, at least not yet. You can select the horizontal line marker and make it quite large. Not the same, but close (I hope).
May 21, 2019 at 08:59 am - Permalink
In reply to That isn't an option, at… by johnweeks
Thank you! I will try it.
May 21, 2019 at 09:12 am - Permalink
In fact, while implementing box plots, I looked around the internet for examples. I didn't find any that used the mean instead of the median. A box plot was originally conceived of as a statistical representation of multiple values, and the choice of the median was part of that representation. That's not to say that a representation using the mean isn't correct, but it is different from what Tukey published originally. I hope you note that use of the mean in the caption :)
I would love an explanation of your use of the box plot with mean as the central value.
May 21, 2019 at 10:10 am - Permalink
In JMP, there is an option to show both the mean line and a mean diamond. The mean diamond is intended to show the std error.
Andy
May 21, 2019 at 10:21 am - Permalink
In reply to In fact, while implementing… by johnweeks
In many papers, authors write mean values (not median) with standard errors. I'd like to use box plot for graphical representation of intergroup difference for specific physical quantities.
May 21, 2019 at 11:33 am - Permalink
So the box represents standard error, with the line showing the mean? In order to get all the way there, you need me to implement the standard error part. And what do the whiskers show?
May 21, 2019 at 12:32 pm - Permalink
In reply to So the box represents… by johnweeks
Whisker show standard deviation. I found the site with documentation for Statistica software, where the information about box plots is given: http://documentation.statsoft.com/STATISTICAHelp.aspx?path=Graphs/Graph/ModifyingGraphs/Dialogs/PlotBoxWhiskerTab
From that documentation:
"Middle point. Use the Middle point drop-down box to select the statistic Mean or Median to be used to determine the center (middle) points in the plot"
"Whisker value. Use the Whisker value drop-down box to choose how the ranges of Whiskers are computed; the options available in this box depend on the Middle point you selected. For the Median middle point, the available choices include Percentiles, Non-outlier range (see Outliers), Min-Max (minimum and maximum values), and Constant (draw the whiskers to enclose a fixed-value interval around the middle point). For the Mean middle point, available options are Std. Dev. (standard deviation), Std. Err. (standard error of the mean), Conf. Interval (confidence interval for the mean), Non-outlier range (see Outliers), Min-Max(minimum and maximum value), and Constant."
May 21, 2019 at 12:58 pm - Permalink
OOOooohhh...
They make a box plot that shows either mean and various related statistics, or the median and percentile statistics. Mine is the old-fashioned Tukey-style median type, with some additions such as the ability to show the mean as a marker if you really want it. I'll have to think hard about that. There's a lot there to implement to make the full Statistica-style box-plot-as-normal-stats representation. They even have options to use pooled variance and other ANOVA-type stats in the mean-based version of the box plot.
Any notion how common it is to see such plots? I visited the Neuroscience meeting shortly before Igor 8 saw the light of day. That's what made be decide to push box plots and violin plots. I saw lots of both on posters there. But as far as I know, the box plots were of the Tukey sort.
May 21, 2019 at 05:19 pm - Permalink
My two cents here is that although a box plot can be modified to show other things, it doesn't mean that it should. The Tukey-style box plot implementation in Igor is fine. At least in my field, the only variability is what is shown in the whiskers. Median and IQR for the line and box is the standard and shouldn't be messed with.
May 21, 2019 at 10:31 pm - Permalink
In reply to OOOooohhh... They make a… by johnweeks
I remember that there were some papers where authors plotted box plots with mean and standard deviations. Now I can't find these papers. Maybe there were bar charts.
May 22, 2019 at 08:21 am - Permalink