0

The x-axis top labels are out of the border in my plot, how can fit all the words in there?

I have tried the following, but seems not working:

theme(axis.text.x.top = element_text(margin = margin(...))
theme(axis.title.x.top = element_text(margin = margin(...))

enter image description here

Thanks!

pogibas
  • 27,303
  • 19
  • 84
  • 117
Lumos
  • 1,303
  • 2
  • 17
  • 32
  • what about decreasing size of the font (e.g. "text = element_text(size=20)") – Stephan Mar 18 '18 at 00:35
  • 1
    Please provide a reproducible example, are you describing the text or title of the x axis or the facet text? – Djork Mar 18 '18 at 00:57
  • Are these facets? Looks like that. If this is a case then there's a dup: https://stackoverflow.com/questions/37174316/how-to-fit-long-text-into-ggplot2-facet-titles – pogibas Mar 18 '18 at 06:47

0 Answers0