Skip to main content Module theme Copy item path Source pub use elements::ElementGeom ;pub use elements::ElementLine ;pub use elements::ElementRect ;pub use elements::ElementText ;elements presets Margin Plot margins (in pixels). Theme Complete theme specification for a plot. ThemeUpdate Incremental theme modifications. All fields are optional — only Some values are applied.
Like R’s theme(axis.text.x = element_text(...)). AxisLabelFit How an outer x-axis tick label that would cross the SVG’s edge is
handled (B3-1; ggplot2 itself leaves this to the viewport/device and has
no direct equivalent — this is a ggplot-rs extension, D4). LegendDirection Layout direction of the legend keys (R’s legend.direction). LegendPosition Position of the legend. TagPosition Corner for the labs(tag) label (R’s plot.tag.position). TitlePosition Whether title/subtitle/caption align to the panel or the whole plot width
(R’s plot.title.position / plot.caption.position).