1
$\begingroup$

Data is available from here

https://www.ocr.org.uk/Images/400305-large-data-set-lds_1-h630-2018-h640-2018-2019-pre-release-data-mei.xlsx

dat = Import["MEI-B_LDS1.xlsx", {"Sheets", "Data"}];

I have replaced all N/A to Missing[].

BoxWhiskerChart[{Values[#]}, ChartLegends -> Keys[#]] &@ GroupBy[dat[[2 ;;, {3, 11}]], First -> Last]

No problem. Works fine. enter image description here

But then how to I change the labels so that they are rotated 180 degree under the axis? Like this example

enter image description here

Best I can do is

BoxWhiskerChart[{Values[#]}, ChartLabels -> Placed[Keys[#], Axis]] &@ GroupBy[dat[[2 ;;, {3, 11}]], First -> Last]

enter image description here

Struggling with the rotation due to the use of (nested?) pure functions here.

$\endgroup$
0
$\begingroup$

Use the pure function Rotate[#, 90 Degree] & as the third argument of Placed:

BoxWhiskerChart[{Values[#]}, 
   ChartLabels -> Placed[Keys@#, Axis, Rotate[#, 90 Degree] &]] &@
 GroupBy[dat[[2 ;;, {3, 11}]], First -> Last]

enter image description here

$\endgroup$

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.