You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Default sort order for bar charts seems to be the order of the categorical column. Therefore if you have a data frame whose categorical data is in alphabetical order, the Y axis variable is unlikely to plot in descending (or ascending) numerical order.
Option to sort by a numeric value - general use case would be the numeric value of the column plotted in the bar chart Y axis, although sort on another column would also be a nice to have.
edit - something like + scale_x_discrete(limits = my_var) I presume is a straightforward syntax here
The text was updated successfully, but these errors were encountered:
Default sort order for bar charts seems to be the order of the categorical column. Therefore if you have a data frame whose categorical data is in alphabetical order, the Y axis variable is unlikely to plot in descending (or ascending) numerical order.
Option to sort by a numeric value - general use case would be the numeric value of the column plotted in the bar chart Y axis, although sort on another column would also be a nice to have.
edit - something like + scale_x_discrete(limits = my_var) I presume is a straightforward syntax here
The text was updated successfully, but these errors were encountered: