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
  • 8,243
  • 5
  • 28
  • 48
HanniBaL90
  • 535
  • 6
  • 18

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
  • 535
  • 6
  • 18