1 Matching Annotations
- Aug 2021
-
cmdlinetips.com cmdlinetips.com
-
scale_x_discrete(guide = guide_axis(n.dodge = 2))
With guide_axis(), we can add dodge to our axis label texts to avoid overlapping texts. In the code below, we have used guide_axis() function with n.dodge=2 inside scale_x_discrete() to dodge overlapping text on x-axis.
-