What Is New in 4.9.0#

  • Statistical Summaries Directly on geom_smooth() Plot Layer

    The geom_smooth() layer now includes a labels parameter designed to display statistical summaries of the fitted model directly on the plot. This parameter accepts a smooth_labels() object, which provides access to model-specific variables like \(R^2\) and the regression equation.

    ../../_images/smooth_summary.png

    See example notebook.

  • Plot Tags

    Plot tags are short labels attached to a plot.

    ../../_images/plot_tags.png

    See example notebook.

  • New geom_bracket() and geom_bracket_dodge() Geometries

    New geometries designed primarily for significance bars (p-values) annotations in categorical plots.

    ../../_images/geom_bracket.png

    See: example notebook.

  • Custom Color Palettes in geom_imshow()

    The cmap parameter now allows you to specify a list of hex color codes for visualizing grayscale images. Also, the new cguide parameter lets you customize the colorbar for grayscale images.

    ../../_images/image_custom_cmap.png

    See example notebook.

  • New palette() Method in Color Scales

    Generates a list of hex color codes that can be used with scale_color_manual() to maintain consistent colors across multiple plots.

    See: example notebook.

  • New overflow parameter in scale_color_brewer(), scale_fill_brewer()

    Controls how colors are generated when more colors are needed than the palette provides. Options: 'interpolate' ('i'), 'cycle' ('c'), 'generate' ('g').

    See: example notebook.

  • New break_width Parameter in Positional Scales

    Specifies a fixed distance between axis breaks.

    See examples:

  • Axis Minor Ticks Customization

    The axis_minor_ticks and axis_minor_ticks_length parameters in theme().

    See: example notebook.

  • Pan/Zoom in gggrid() with Shared Axes

    Pan/Zoom now propagates across subplots with shared axes (sharex/sharey).

    See: example notebook.

  • And More

    See CHANGELOG.md for a full list of changes.

Changelog#

See CHANGELOG.md for other changes and fixes.