3.8. テーマを変えてみる
ggplot2には、テーマというものが用意されていて、テーマの指定を変えることでグラフの背景色、罫線の色を変更することができます。
theme_void
g <- g + theme_void() print(g)
図 3-8-1
theme_classic
g <- g + theme_classic() print(g)
図 3-8-2
theme_minimal
g <- g + theme_minimal() print(g)
図 3-8-3
theme_light
g <- g + theme_light() print(g)
図 3-8-4
theme_bw
g <- g + theme_bw() print(g)
図 3-8-5
theme_linedraw
g <- g + theme_linedraw() print(g)
図 3-8-6
theme_grey
g <- g + theme_grey() print(g)
図 3-8-7
theme_dark
g <- g + theme_dark() print(g)