【问题标题】:Year-Month data appears in wrong format年月数据格式错误
【发布时间】:2018-04-03 12:26:05
【问题描述】:

我使用 as.yearmon() 将我的数据转换为年月格式,结果是:

Result 1

问题是:当我绘制图表时,时间段以年份显示,例如:2017.0 而不是 2017/Jan 或其他时间。

Problem outcome

【问题讨论】:

  • 请发布您的代码和输出,不要只使用图片链接。
  • ?scale_x_yearmon

标签: r time-series data-manipulation


【解决方案1】:

谢谢 G. Grothendieck。我刚刚包含了scale_x_yearmon(),问题就解决了。

【讨论】:

    猜你喜欢
    • 2015-02-03
    • 2016-10-23
    • 2015-04-29
    • 2021-12-11
    • 2019-09-21
    • 1970-01-01
    • 2017-05-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多