Skip to main content

Crate ggplot_rs

Crate ggplot_rs 

Source

Re-exports§

pub use locale::Locale;
pub use plot::GGError;
pub use plot::GGPlot;

Modules§

aes
annotate
build
compose
Plot composition for the native SVG path — a patchwork-style PlotGrid.
coord
data
facet
format
Public value and label formatting helpers.
geom
ggpubr
ggpubr-style one-call plot constructors.
graph
Drawing a laid-out graph of boxes: swimlane bands, edges (polylines with an arrowhead, a linetype, a width and an optional label placed clear of the boxes) and node boxes (a wrapped label, an optional value line, status badge and sparkline, and an accent bar), as one GGPlot of ordinary layers.
graph_layout
Layered (Sugiyama-style) layout of a directed graph of boxes — nodes in layers (stages) along one axis, ordered across it to keep crossings low.
guide
helpers
ggplot2’s helper functions (#414): discretising a continuous variable (cut_interval, cut_number, cut_width), resolution, and the stat_summary summary functions (mean_se, mean_cl_normal, mean_cl_boot, mean_sdl, median_hilow) as plain functions.
locale
Locale conventions for number and date labels.
plot
position
prelude
render
scale
stat
summary
What a built plot draws, as numbers: per layer (and facet panel) and per series, how many marks, the x range, the y minimum / maximum and where, the first and last y, and a band’s extent. A caller that writes about a chart (a title, an answer) can quote these instead of guessing them.
theme

Macros§

from_polars
Convert a polars DataFrame into plot-ready columns using your crate’s polars (#466): the macro expands in your crate, against the polars version you depend on, so it works whether you use polars 0.46, 0.52, 0.53 or later — no second polars build, no type mismatch, and ggplot-rs’s own polars feature can stay off.