见链接: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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-10
  • 2021-10-15
  • 2022-03-05
  • 2022-01-17
  • 2022-12-23
  • 2021-11-11
猜你喜欢
  • 2021-05-27
  • 2022-12-23
  • 2021-07-14
  • 2021-10-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案