This is another way how you can avoid overlapping axis labels in #tidyplots 🧐
Just swap x-axis and y-axis 🚀
#rstats #dataviz #phd
Just swap x-axis and y-axis 🚀
#rstats #dataviz #phd
Comments
add_mean_bar(width = 0.1)
Is this an equivalent of coord_flip()?
I'd have *expected* it to put them in alphabetical order (default if passed as a character to ggplot I think!)
https://jbengler.github.io/tidyplots/reference/sort_x_axis_labels.html
SHRTM!
And the sort is by value not alphabet!
https://ggplot2.tidyverse.org/reference/coord_flip.html
E.g. `tidyplot(x = size, y = dinosaur)` instead of `tidyplot(x = dinosaur, y = size)`