JuliaPlots / StatsPlots.jl

Statistical plotting recipes for Plots.jl
Other
440 stars 90 forks source link

Expose sorting options for boxplots (and other plots?) #409

Closed nwilleyltk closed 1 year ago

nwilleyltk commented 3 years ago

By default the boxplot orders a categorical axis alphabetically. Often times, there is a semantic ordering that makes more sense. Allowing the user to specify the order for the x-axis would be a meaningful enhancement.

sethaxen commented 3 years ago

Probably as simple as providing a sort keyword argument (we could provide by, similar to sort, but this way a user could pass identity to avoid sorting entirely).