Spiral Graph in R

被刻印的时光 ゝ 提交于 2019-12-01 10:16:13

问题


How to create a spiral graph in R? Is there any package for this kind of analysis? Or is there any other way to visualize time oriented data (regarding periodicity)?


回答1:


For examining periodicity, cycle plots (pdf) work well. There are also many, many functions for analysing periodicity in time series. Start with stl and periodicity in the xts package.

Using ggplot2, you can create a spiral graph like this:

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


来源:https://stackoverflow.com/questions/6828350/spiral-graph-in-r

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!