// readme

ggplot-rs

A Rust implementation of ggplot2’s Grammar of Graphics, rendering through a self-contained SVG backend (no dependencies) or, with the default plotters feature, the plotters SVG/bitmap backend.

Validated against R. Computed layers β€” binning, density, stacking, QQ/ECDF, LOESS, and axis-tick placement (extended-Wilkinson) β€” are checked against R ggplot2 4.0.3’s ggplot_build() output, so a histogram or a stacked bar comes out where ggplot2 puts it. See validation/.

Every image below is produced by examples/gallery.rs β€” regenerate them all with cargo run --features sf --example gallery (the choropleth needs the sf feature; drop it for the rest). The supplier_leadtime*.png images come from examples/supplier_leadtime.rs, and inventory_twin.png from examples/inventory_twin.rs (its…