0

How can i change the size of X labels under ggplot2 v0.8.9, i tried to use the theme() function but this last one is exclusive to upper version.

Thanks,

joel.wilson
  • 7,843
  • 5
  • 26
  • 44
HanniBaL90
  • 396
  • 2
  • 15

1 Answers1

1

The only solution is to use the old opt() function like this:

// Considering that the plot is P
P+opts(axis.text.x=theme_text(size=10))

By the same way it is also possible to rotate the label or change the font by replacing size with angle, font, etc...

HanniBaL90
  • 396
  • 2
  • 15