0

这是我的条形图代码:

ggplot(d, aes(x=column1, y =column2)) + geom_bar(position=position_dodge()) + 
         opts(panel.background = theme_rect(fill='white', colour='white'))

column1- 酒吧的名称。

如何使名称的字体更大?

4

1 回答 1

2

要更改 x 轴标签的大小,您应该使用axis.text.x=inside opts()(如果您使用旧版本ggplot2)或 inside theme()(从ggplot2版本 0.9.1 开始)。

+opts(axis.text.x=theme_text(size=13))

+theme(axis.text.x=element_text(size=13))
于 2013-07-19T14:19:23.537 回答