Factor as a variable type for data visualization

When making basic visualisations like barplots on survey results, does it make any sense to mutate variables into factors?

Turn a variable into a factor if you want the ordering of the categories to be different from the (default) alphabetical order. For example, you might want to change the ordering of categories plotted on the x-axis. This presentation has a number of examples combining factor reordering and ggplot.

Excellent joels! Thx

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.