What Is New in 4.9.0#
Statistical Summaries Directly on geom_smooth() Plot Layer
The
geom_smooth()layer now includes alabelsparameter designed to display statistical summaries of the fitted model directly on the plot. This parameter accepts asmooth_labels()object, which provides access to model-specific variables like \(R^2\) and the regression equation.
See example notebook.
Plot Tags
Plot tags are short labels attached to a plot.
See example notebook.
New geom_bracket() and geom_bracket_dodge() Geometries
New geometries designed primarily for significance bars (p-values) annotations in categorical plots.
See: example notebook.
Custom Color Palettes in geom_imshow()
The
cmapparameter now allows you to specify a list of hex color codes for visualizing grayscale images. Also, the newcguideparameter lets you customize the colorbar for grayscale images.
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_ticksandaxis_minor_ticks_lengthparameters intheme().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.
Recent Updates in the Gallery#
Changelog#
See CHANGELOG.md for other changes and fixes.