使用ggplot2进行绘图时,需要设置参数来调整title是否居中
首先使用ggtitle给定题目
ggtitle("plot title")
再使用theme函数更改居中参数
theme(plot.title=element_text(hjust = 0.5))
使用ggplot2进行绘图时,需要设置参数来调整title是否居中
首先使用ggtitle给定题目
ggtitle("plot title")
再使用theme函数更改居中参数
theme(plot.title=element_text(hjust = 0.5))