How can I add a legend to my boxplot for specific elements?
9 views (last 30 days)
Show older comments
This is the code for my figure:
AD is a matrix with data (8x10).
figure(1);
hold on;
A = boxplot(AD,'OutlierSize',4); % Boxplot
plot(t,AD,'Marker','.','LineStyle','none','MarkerSize',12); % Data single participants
MA = plot(mean(AD,'omitnan'),'Marker','x','Color','k','LineStyle','none'); % Mean for each training
title('Amplitudeverschil');
ylabel('Amplitude(%)');
xlabel('trainingsnummer');
axis([0.5 11 0 80]);
grid on;
hold off;
This is the result:
How can I add a legend in wich I include: Median, Min & Max, Outlier, interquartile ranges and the mean (plotted as MA).
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!