标签: r ggplot2
我有这张ggplot图表
ggplot( data = cars, aes( x = dist, y = speed ) ) + geom_point() + labs( caption = "Some caption" )
如何更改标题的颜色并使其变为斜体。
答案 0 :(得分:3)
用+ theme(plot.caption = element_text(color = "red", face="italic"))
+ theme(plot.caption = element_text(color = "red", face="italic"))