1 Matching Annotations
  1. Aug 2021
    1. 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.