为了检查周期性,循环图(pdf)运作良好.用于分析时间序列中的周期性的功能也很多.开始stl
和periodicity
在xts
包中.
使用ggplot2
,您可以创建如下螺旋图:
library(ggplot2)
data(beavers)
p <- ggplot(beaver1, aes(time, temp, colour = day)) +
geom_line() +
coord_polar(theta = "x")
p
Run Code Online (Sandbox Code Playgroud)