I am having a problem with a couple of things in this grouped box chart. Using following data I can plot a grouped box-whisker chart (example):
SeedRandom[1];
labels = {{"first", "second", "third", "fourth", "fifth"}, None};
xdata = RandomReal[10, {5, 5}];
SeedRandom[2];
ydata = RandomReal[10, {5, 5}];
Transpose[{xdata, ydata}];
BoxWhiskerChart[data, ChartLabels -> labels, ImageSize -> 500];
Here, yellow and blue form one group, and there are 5 groups in total. I would like to
- Reduce the ingroup spacing and increase the inter-group spacing.
- Rotate the axis label by 45 deg
- Remove two extra ticks and put one tick for the group.
- Common bottom label (like treatment in the ref fig below)
BarSpacing
option for BoxWhiskerChart. 2. Look upRotate
. 3. I seem to remember that this has been discussed before here, but I couldn't immediately find it. 4. You may want to create your own legend withSwatchLegend
and then maybe enclose the chart and legend inFramed
. $\endgroup$