cinderplotv0.5.2

The grammar of graphics, in C

Publication-ready graphics from one small, fast binary and a token-efficient grammar.

CSV or TSV in — PDF, SVG or PNG out. No R, no Python at plot time.

See the gallery →
16geoms
8scales
3modes
C11+ Cairo

Install & plot

# from the zhou-lab conda channel
conda install -c zhou-lab -c conda-forge cinderplot

# plot straight from a CSV
cinderplot 'data.csv
  + aes(hp, mpg, colour=factor(cyl))
  + geom_point()' -o plot.pdf

Why cinderplot

  • Small & fast. One C11 binary, Cairo output. Milliseconds per figure, no runtime.
  • Familiar grammar. aes, geoms, scales, legends and themes inspired by ggplot2 — reproduces theme_gray by default, with theme_bw/minimal/classic/void and more.
  • Vector or raster. PDF, SVG or PNG chosen by the output file extension (--dpi for PNG). Publication-ready.

Supported grammar

growing see it drawn →

Geoms

geom_pointgeom_linegeom_colgeom_bargeom_histogramgeom_boxplotgeom_densitygeom_rectgeom_segmentgeom_rastergeom_textgeom_labelgeom_text_repelgeom_hlinegeom_vlinegeom_abline

Scales

x / y log10percent labelsgenome xcolour huecolour gradientgradient2manual coloursdiscrete x / y

Positions

position_stackposition_dodgeposition_dodge2

Modes

scatter / grammarheatmap + clusteringgenomic tracks

Themes

theme_graytheme_bwtheme_minimaltheme_classictheme_voidtheme_linedrawtheme_lighttheme_darktheme_few

Gallery · For coding agents · GitHub · Examples · MIT · zhou-lab