Reputation: 779
This is my code for barchart:
ggplot(d, aes(x=column1, y =column2)) + geom_bar(position=position_dodge()) +
opts(panel.background = theme_rect(fill='white', colour='white'))
column1
- names of the bars.
How can I make the font of the names bigger?
Upvotes: 0
Views: 290
Reputation: 98429
To change the size of x axis labels you should use axis.text.x=
inside opts()
(if you use old version of ggplot2
) or inside theme()
(starting from ggplot2
version 0.9.1).
+opts(axis.text.x=theme_text(size=13))
+theme(axis.text.x=element_text(size=13))
Upvotes: 2