Skip to contents

Drawing the glyph

The main layer, and the two fish it is assembled from.

geom_taichi()
Taichi
geom_yin_fish() geom_yang_fish()
The individual taichi fish layers
ggtaichi-ggproto GeomYinFish GeomYangFish
ggtaichi's ggproto classes

The relationship between the two sources

A taichi grid shows two sources in one position, which answers “which is bigger here?” and not “by how much?”. These compute the second question’s answer – inside the glyph, as a table, or as a heatmap of its own.

taichi_summary()
Summarise the two sources cell by cell
geom_taichi_diff()
The difference between the two sources, as a heatmap

Palettes

The two fill ramps are compared against each other, so pairing them is a correctness question rather than a matter of taste. These build a matched pair and measure any pair.

taichi_palette_pair()
Build a luminance-matched pair of sequential palettes
taichi_palette()
Ready-made palette pairs
taichi_check_palette()
Measure whether two fill ramps are a fair pair

Scales

Ready fill scales in the package’s conventions, including the binned ones worth reaching for on a dense grid.

Styling

theme_taichi()
Plot Themes
remove_padding()
Remove ggplot2 default padding
draw_key_taichi()
A taichi-shaped legend key

Data

cafes_tg
Synthetic café orders: espresso vs. matcha
pitts_tg
Pittsburgh COVID-related Google & Twitter incidence rates
states_tg
States' COVID-related Google & Twitter incidence rates
pitts_emojis
Popular Emojis

Package

ggtaichi ggtaichi-package
ggtaichi: Taichi diagrams for two data sources