This is sometimes useful when plotting a factor
fct_rev(f)
f
A factor
f <- factor(c("a", "b", "c")) fct_rev(f)