Skip to content

ggrust 0.5.0

Choose a tag to compare

@Zaf4 Zaf4 released this 05 Nov 21:53
· 214 commits to main since this release

Highlights

  • Built-in ggplot2 extensions: ggsci palettes, ggbeeswarm, ggnewscale, ggpointdensity, ggrastr, gghalves/ggdist, ggpubr/ggpmisc statistics, ggforce marks, dendrograms, gghighlight and patchwork extras.
  • Secondary axes, axes on top/right, custom fonts, and an interactive legend in HTML output.
  • Read-only spec accessors: layer_data(), build() and plot properties.

Added

  • ggsci journal palettes: scale_color_* / scale_fill_* for npg, aaas, nejm, lancet, jama, jco, d3 and igv.
  • ggbeeswarm: geom_beeswarm, geom_quasirandom.
  • ggnewscale: new_scale_color(), new_scale_fill(), new_scale().
  • ggpointdensity: geom_pointdensity, stat_pointdensity.
  • ggrastr: rasterize(layer, dpi=300) draws a layer as an image in SVG and PDF.
  • gghalves and ggdist: half geoms, slabs and intervals for raincloud plots.
  • ggpubr / ggpmisc: stat_compare_means, stat_cor, stat_poly_eq.
  • ggforce: geom_mark_hull, geom_mark_ellipse, geom_mark_rect.
  • Dendrograms: hierarchical clustering, geom_dendrogram, scale_*_dendro and guide_axis_dendro (follow HTML zoom and pan).
  • gghighlight: grey out non-matching rows, with direct repel labels.
  • patchwork extras: tags, design layouts, insets and nested alignment.
  • geom_col, geom_rug and stat_ellipse (ggplot2 semantics).
  • Secondary axes: sec_axis, dup_axis, derive.
  • position= on x and y scales draws the axis on the top/right side, or both.
  • Custom fonts: register_font, register_font_dir, registered_fonts.
  • Spec accessors: PlotSpec.data, .mapping, .layers, .scales, .theme and more; with_data(); layer_data(i) and build() return the engine's computed data as polars frames. SupPlotsSpec gets figures, grid[i], with_figure(), with_layout() and more. New PlotIndexError.
  • Theme geom colors as lets-plot: defaults follow the theme flavor, the color names "pen", "brush", "paper" work everywhere, and theme(geom=element_geom(...)) is drawn.
  • Manual legends: manual_key= on every geom and layer_key(...).
  • gggrid captions via labs(caption=).
  • geom_boxplot(outlier_jitter=, outlier_seed=).
  • A style scale with an explicit na_value gets an "NA" legend key or colorbar swatch.
  • Interactive legend in HTML output: click legend keys to hide and show groups.

Fixed

  • Notebook HTML works in Google Colab (tooltips, toolbar and canvas layers were static there).
  • ipykernel is no longer a runtime dependency.