Median line representation in boxplot
16 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I converted the boxplot color to black. So i want to distinguish median with different pattern. I tried giving notch option to boxplot. But that does not look nice. Is there any way to represent median in dotted lines?? or any other nice representation???
0 Commenti
Risposta accettata
Wayne King
il 14 Giu 2013
Can you please show an example, because the color of the median line defaults to red. So I don't think I understand what you're saying. At any rate, you can modify that line like this:
load carsmall;
boxplot(MPG)
h = findobj(gca,'tag','Median');
set(h,'linestyle','-.');
set(h,'Color',[0 0 0])
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Histograms in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!