ggtaichi, which is a ggplot2 extension, visualizes data from two different sources on a single grid of taichi (yin-yang) diagrams. Instead of faceting a heatmap by data source, the two sources are combined into one plot, where every cell becomes a taichi symbol whose two fish are filled by the two sources via luminance. Prior to using the package, users should load ggplot2.
ggtaichi functions
The main workhorse is geom_taichi(), which turns every (x, y)
cell into a taichi diagram, much like geom_tile() draws a regular
heatmap. It is supported by theme_taichi() and remove_padding()
for styling. Users should reference the documentation and run the examples in
the help files when trying to understand what each argument means visually.
Around it are the pieces that make a grid of glyphs readable:
taichi_summary() and geom_taichi_diff() put the relationship
between the two sources into numbers and into a diverging heatmap;
taichi_palette_pair(), taichi_palette() and
taichi_check_palette() build and audit the pair of colour ramps the
comparison depends on; the scale_taichi_*() family supplies ready
fill scales, including the binned ones worth reaching for on a dense grid;
and geom_taichi(interactive = TRUE) hands the plot to
ggiraph so a reader can hover for the exact values.
Author
Maintainer: Youzhi Yu yuyouzhi666@icloud.com
