I am thinking about locating MEAN as a straight horizontal line or a symbol inside the boxplots for illustration purposes. I would say it is possible since distributions are not significantly skewed. Any suggestions?!
Here is a MATLAB sample code:
rng default % For reproducibility
x1 = normrnd(5,1,100,1);x2 = normrnd(6,1,100,1);figureboxplot([x1,x2],'Notch','on','Labels',{'mu = 5','mu = 6'})title('Compare Random Data from Different Distributions')cust_colr = [0, 0.5, 1 0.60156, 0.80078, 0.19531 0.5, 0, 0];h = findobj(gca,'Tag','Box'); for j=1:length(h) patch(get(h(j),'XData'),get(h(j),'YData'),cust_colr(j,:)); end
Output picture is shown below:
Best Answer