Overview
ggchord is an R package built on ggplot2 for drawing chord diagrams of multi-sequence data using the layered grammar of graphics. You provide three tidy data frames (seq_data, ribbon_data, gene_data) and stack geom_* layers like any other ggplot2 plot.
Key Features
- True
ggplot2layered style - Multi-sequence, multi-ribbon and multi-gene support
- Per-sequence and per-strand parameters
- Themes, scales,
ggsave(),ggplot_build()andplotly::ggplotly()integration
Installation
ggchord requires R (≥ 4.1.0) and ggplot2 (≥ 4.0.0).
install.packages("ggchord") # CRAN
devtools::install_github("DangJem/ggchord") # development versionGet started
| Need | Resource |
|---|---|
| Full tutorial | ggchord tutorial |
| 汉语完整指南 | ggchord 汉语指南 |
| Function reference | Function reference |
| Version history | NEWS.md |
Contributions & Feedback
Bug reports and feature requests are welcome via GitHub issues. Pull requests are also appreciated.
License
This project is licensed under the MIT License — see the LICENSE file for details.