Home

Awesome

circlize: circular visualization in R <a href="https://jokergoo.github.io/circlize_book/book/"><img src="https://jokergoo.github.io/circlize_book/book/images/circlize_cover.jpg" width=240 align="right" ></a>

R-CMD-check CRAN CRAN Codecov test coverage

Circular layout is an efficient way for the visualization of huge amounts of information. Here the circlize package provides an implementation of circular layout generation in R as well as an enhancement of available software. The flexibility of this package is based on the usage of low-level graphics functions such that self-defined high-level graphics can be easily implemented by users for specific purposes. Together with the seamless connection between the powerful computational and visual environment in R, circlize gives users more convenience and freedom to design figures for better understanding complex patterns behind multi-dimensional data.

Citation

Zuguang Gu, et al., circlize Implements and enhances circular visualization in R. Bioinformatics (Oxford, England) 2014. PubMed

Documentation

The full documentations are available at https://jokergoo.github.io/circlize_book/book/ and the online website is at https://jokergoo.github.io/circlize/.

Blog posts

There are the following blog posts focusing on specific topics.

Examples

See https://jokergoo.github.io/circlize_examples/.

<img width="700" alt="circlize_example" src="https://jokergoo.github.io/circlize_book/book/images/ciclize_examples.jpg">

Install

The package can be installed from CRAN:

install.packages("circlize")

or directly from GitHub:

devtools::install_github("jokergoo/circlize")

Basic design

Since most of the figures are composed of points, lines and polygons, we just need to implement functions for drawing points, lines and polygons, then the plots will not be restricted in any specific types.

Current there are following low-level graphic functions:

For drawing points, lines and text through the whole track (among several sectors), the following functions are available:

Draw circular heatmaps

Functions to arrange the circular layout:

Theoretically, you are able to draw most kinds of circular plots by the above functions.

For specific use in Genomics, we also implement functions which add graphics in genome scale.

Functions to initialize circular plot with genomic coordinates:

Functions to arrange genomic circular layout:

Functions to add basic graphics in genomic scale:

Functions with specific purpose:

Finally, function that draws Chord diagram:

License

MIT @ Zuguang Gu