How can I rotate the BoxPlot with AoG?

AugustoCL
Fri, 28 Jul 2023 23:12:54 +0000
Visualization

I’m trying to reproduce the following plot using AoG customizing whatever is needed with CairoMakie properties/parameters. So, as the names are long, I need to rotate them to see better.

this plot just used coord_flip() from ggplot2 to accomplish the objective

I find the orientation=:horizontal boxplot parameter, that works with the visual step, but all the axis got broken, the numbers of axis dissapeared, as you can see below.
nd after looking for parameters of Axis in Makie API documentation, I couldn’t realize how I can solute this.

code of the plot above

plt = data(df) *
  visual(BoxPlot, show_notch=true, orientation=:horizontal) *
  mapping(:major_category, :median);
draw(plt)

I appreciate any help with this, tks.

6 posts - 2 participants