ggplot2画histogram(坐标轴刻度值字体大小,坐标轴标题字体大小,柱形宽度,大标题字体大小、居中)

见链接:https://www.r-bloggers.com/how-to-make-a-histogram-with-ggplot2/

写的很完整。

此外,关于一些参数的用法:

theme(plot.title = element_text(hjust = 0.5,size = 20, face = "bold"),axis.text=element_text(size=12,face = "bold"),axis.title.x=element_text(size=14),axis.title.y=element_text(size=14))

axis.text:改变坐标轴刻度值的字体大小;

axis.title.x和axis.title.y改变x轴和y轴标题字体大小;

binwidth表示的柱形的宽度;

hjust = 0.5大标题居中;

size=20表示大标题字体大小为20

posted @ 2018-06-18 17:38  橙子牛奶糖  阅读(18618)  评论(0编辑  收藏  举报