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=内側opts()(古いバージョンの を使用している場合ggplot2) または内側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 に答える