Is there a simple way to display the mean in boxplots, marked with a diamond/triangle or whatever?
If there is no simple way, can it be done with the hold command or something? And can a how-to be found in the archives or matlab help. I don't want to annoy anybody by having him write long explainations I could have easily looked-up for myself.
Thanks a lot
Alex
Thanks for the answer, but I already checked the help function (Matlab 2008a) and there is neither a parameter for nor an example with the mean.
The newsgroup search for boxplot didn't return anything useful (28 Hits) and the search for the word boxplot and mean is invalid because of the common usage of "mean"...
Google search couldn't help either.
Is the hold function the last straw (besides photoediting ;-) )?
No, not the last but the first. Did you try to hold and plot?
x = log(rand(100,5));
h = boxplot(x);
mx = mean(x);
hold on
plot(mx,'d')
% should work
Or you can just add a line using low level commands
hl = line('XData',1:5', ...
'YData',mx,...
'LineStyle','none', ...
'Marker','d');