The package spiralize visualizes data along an Archimedean spiral. It has two major advantages for visualization:
https://jokergoo.github.io/spiralize/
Zuguang Gu, et al., spiralize: an R package for Visualizing Data on Spirals, Bioinformatics, 2021. https://doi.org/10.1093/bioinformatics/btab778
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")
It includes three steps:
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(...)
...
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()
MIT @ Zuguang Gu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.