spiralize
It visualizes data along an Archimedean spiral, makes so-called spiral graph or spiral chart. It has two major advantages for visualization: 1. It is able to visualize data with very long axis with high resolution. 2. It is efficient for time series data to reveal periodic patterns.
Cite this software
Description
Visualize Data on Spirals
Features
The package spiralize visualizes data along an Archimedean spiral.
It has two major advantages for visualization:
- It is able to visualize data with very long axis with high resolution.
- It is efficient for time series data to reveal periodic patterns.
Documentation
https://jokergoo.github.io/spiralize/
Citation
Zuguang Gu, et al., spiralize: an R package for Visualizing Data on Spirals, Bioinformatics, 2021. https://doi.org/10.1093/bioinformatics/btab778
Install
The package is available on CRAN and can be installed by:
install.packages("spiralize")
If you want the latest version, install it directly from GitHub:
library(devtools)
install_github("jokergoo/spiralize")
Usage
It includes three steps:
- initialize the spiral,
- add a track,
- add graphics to the track.
Step 2 and 3 can be applied multiple times to allow multiple-track visualization along the spiral.
The code for making spiral plot looks likes follows:
library(spiralize)
spiral_initialize(...)
spiral_track(...)
spiral_points(...)
...
Graphics
Complex plots are baiscally constructed from simple graphics. Here there are following low-level graphics functions:
spiral_points()spiral_lines()spiral_rect()spiral_segments()spiral_polygon()spiral_bars()spiral_text()spiral_axis()spiral_yaxis()spiral_raster()
Particularlly, horizon chart is very suitable to put on the spiral, thus there is one function for this:
spiral_horizon()
Spiral plot can also visualize dendrograms with large number of leaves, thus there are following two functions:
spiral_dendrogram()spiral_phylo()
Examples
- Difference of ggplot2 daily downloads to the mean of the current year (2015-2021). Each loop contains 52 weeks so that same weeks in different years locate at the same angle in the polar coordinates.

- A phylogenetic life tree with 50645 species.

- The spiral COVID-19 Shiny app

License
MIT @ Zuguang Gu
Participating organisations
Reference papers
Mentions
- 1.Author(s): Zhizhan Wang, Jinbiao Cao, Nan Lin, Jiaming Li, Yazhou Wang, Weibin Liu, Wen Yao, Yang LiPublished in International Journal of Molecular Sciences by MDPI AG in 2024, page: 1181410.3390/ijms252111814
- 2.Author(s): Yuji Tominaga, Takuji Kawamura, Emiko Ito, Maki Takeda, Akima Harada, Kosuke Torigata, Ryoto Sakaniwa, Yoshiki Sawa, Shigeru MiyagawaPublished in The Journal of Heart and Lung Transplantation by Elsevier BV in 2024, page: 85-9910.1016/j.healun.2023.08.011
- 3.Author(s): David J. MerrittPublished in Austral Entomology by Wiley in 2024, page: 379-39210.1111/aen.12705
- 4.Author(s): Néhémie StruplerPublished in Cambridge Archaeological Journal by Cambridge University Press (CUP) in 2023, page: 477-49710.1017/s0959774322000440
- 5.Author(s): Xingyu Chen, Bin LiuPublished in Electronics by MDPI AG in 2023, page: 74310.3390/electronics12030743
- 6.Author(s): Gregor SkokPublished in Applied Sciences by MDPI AG in 2022, page: 660910.3390/app12136609
- 7.Author(s): Zhicheng Deng, Xiangting You, Zhaoyang Shi, Hong Gao, Xu Hu, Zhaoyuan Yu, Linwang YuanPublished in ISPRS International Journal of Geo-Information by MDPI AG in 2022, page: 43510.3390/ijgi11080435
- 8.Author(s): Jilei Lin, Shuhua Yuan, Bin Dong, Jing Zhang, Lei Zhang, Jinhong Wu, Jiande Chen, Mingyu Tang, Bin Zhang, Hansong Wang, Liangye Xu, Liebin Zhao, Yong YinPublished in Frontiers in Pediatrics by Frontiers Media SA in 202210.3389/fped.2022.917994