控制时间序列图的x轴标签格式-R
有没有办法强制R在图形上打印时间戳为%m/%d/%Y?当我使用short(时,您可以使用控制时间序列图的x轴标签格式-R,r,plot,timestamp,time-series,R,Plot,Timestamp,Time Series,有没有办法强制R在图形上打印时间戳为%m/%d/%Y?当我使用short(时,您可以使用axis.POSIXct格式化轴,如下所示: axis.POSIXct(1,station_171$datetime, format = '%Y-%m-%d %H:%S') 还应确保在绘图功能中包含xaxt='n',以避免重复打印x轴标签 axis.POSIXct(1,station_171$datetime, format = '%Y-%m-%d %H:%S')
axis.POSIXct
格式化轴,如下所示:
axis.POSIXct(1,station_171$datetime, format = '%Y-%m-%d %H:%S')
还应确保在绘图功能中包含xaxt='n'
,以避免重复打印x轴标签
axis.POSIXct(1,station_171$datetime, format = '%Y-%m-%d %H:%S')