using Plots, StatsPlots, DataFrames df = DataFrame( id=repeat([3, 17, 21], inner=10), value=randn(30) ) @df df boxplot(string.(:id), :value, fillalpha=0.75, linewidth=1)
The result is
I want the box to be 3, 17, 21 from left to right.
PS: I have also tried
CategoricalArray for the
id column, but nothing changed.