小编Vic*_*han的帖子

使用ggplot2绘制时间序列数据

我正在做一个项目,需要使用 ggplot2 来绘制时间序列数据。这是我正在使用的数据集:

欧元

这就是我现在所做的:

library(ggplot2)
library(lubridate)
eur$Date <- as.Date(eur$Date)
ggplot(eur, aes(Date, EUR)) + geom_line()
Run Code Online (Sandbox Code Playgroud)

阴谋

我得到了这个非常奇怪的情节。有人可以帮我解决这个问题吗?

r time-series ggplot2 lubridate

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

ggplot2 ×1

lubridate ×1

r ×1

time-series ×1