Closed cingulate7 closed 2 years ago
The first argument to boxplot
should be the labels of the individual boxplots that should be plotted. Without that, it uses eachindex
, and you're plotting one boxplot per data point.
Is this what you want?
@df dfa boxplot(string.(tuple.(:a, :b)), :dat; group = (:a, :b))
thank you!!!! This has been driving me crazy all week. I will copy your solution to the other forums in which I asked it.
No problem!
The 'group = (:key1, :key2)' expression in @df does not produce expected output. The following code produces a legend with 4 categories, but eight plot objects instead of four: