我尝试制作每小时显示频率的ggplot.我有x轴问题,我把原始日期格式从2015-01-02 02:07:27更改为2015-01-02 02,我用了format(dates, format = "%Y-%m-%d %H").在我的ggplot中,我使用了aes aes(x=as.Date(dates)..但在x轴上我的格式为2015-01-02.可以在x轴上显示日期格式"%Y-%m-%d %H"吗? 谢谢你的帮助!
format(dates, format = "%Y-%m-%d %H")
aes(x=as.Date(dates)..
"%Y-%m-%d %H"
r ggplot2
ggplot2 ×1
r ×1