简体   繁体   English

R中的螺旋图

[英]Spiral Graph in R

How to create a spiral graph in R? 如何在R中创建螺旋图? Is there any package for this kind of analysis? 是否有用于此类分析的软件包? Or is there any other way to visualize time oriented data (regarding periodicity)? 还是有其他方法可视化面向时间的数据(关于周期性)?

For examining periodicity, cycle plots (pdf) work well. 对于检查周期性, 周期图 (pdf)效果很好。 There are also many, many functions for analysing periodicity in time series. 还有很多许多功能可以分析时间序列的周期性。 Start with stl and periodicity in the xts package. xts包中的stlperiodicity开始。

Using ggplot2 , you can create a spiral graph like this: 使用ggplot2 ,您可以创建一个螺旋图,如下所示:

library(ggplot2)
data(beavers)
p <- ggplot(beaver1, aes(time, temp, colour = day)) + 
  geom_line() + 
  coord_polar(theta = "x")
p

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM