/blog/2022/06/23/long-labels-ggplot/ #50
Replies: 3 comments 3 replies
-
Hi Andrew, I just happened to need this and was trying to implement, but
|
Beta Was this translation helpful? Give feedback.
-
This is a great way to handle this very common challenge. I wonder if there is a way to do the same for facet_wrap labels without increasing the width of figure? |
Beta Was this translation helpful? Give feedback.
-
Came across this nice post today and wanted to add a modification to the rotated labels version that I think can look quite nice, which is to have the end of each label align with the axis tic by setting ggplot(essential_by_category,
aes(x = CATEGORY, y = total)) +
geom_col() +
scale_y_continuous(labels = comma) +
labs(x = NULL, y = "Total projects") +
theme(axis.text.x = element_text(angle = 45, hjust = 1)) Loved this post and I learned something new! Just wanted to add another option I have found useful. |
Beta Was this translation helpful? Give feedback.
-
Quick and easy ways to deal with long labels in ggplot2 | Andrew Heiss
https://www.andrewheiss.com/blog/2022/06/23/long-labels-ggplot/
Beta Was this translation helpful? Give feedback.
All reactions