Releases: tidyverse/ggplot2
ggplot2 4.0.2
ggplot2 4.0.1
This is a smaller patch release focussed on fixing regressions from 4.0.0 and
polishing the recent features.
Bug fixes
- Fixed regression where
geom_area()didn't draw panels with single groups
whenstat = "align"(@teunbrand, #6680) - Fixed regression where
position_stack(vjust)was ignored when there are
only single groups (#6692) - Fixed bug where
NAhandling ingeom_path()was ignoring panels (@teunbrand, #6533) - Fixed bug where
stat_bin(boundary)was ignored (#6682). geom_text()andgeom_label()accept expressions as thelabelaesthetic
(@teunbrand, #6638)- Fixed regression where
draw_key_rect()stopped usingfillcolours
(@mitchelloharawild, #6609). - Fixed regression where
scale_{x,y}_*()threw an error when an expression
object is set tolabelsargument (@yutannihilation, #6617). - Fixed regression where the first (unnamed) argument to colour/fill scales was
not passed as thenameargument (@teunbrand, #6623) - Fixed issue where vectorised
arrow()s caused errors in drawing the
legend glyphs (@teunbrand, #6594) - Fixed regression where
NULL-aesthetics contributed to plot labels too
insistently. Now they contribute only as fallback labels (@teunbrand, #6616) - Fixed regression where empty arguments to colour/fill scale caused errors
(@jmbarbone, #6710) - Fixed axis misplacement in
coor_radial()when labels are blank (@teunbrand, #6574)
Improvements
- Improved palette fallback mechanism in scales (@teunbrand, #6669).
- Allow
statingeom_hline,geom_vline, andgeom_abline. (@sierrajohnson, #6559) stat_boxplot()treatswidthas an optional aesthetic (@Yunuuuu, #6575)- The
theme(panel.widths, panel.heights)setting attempts to preserve the
plot's aspect ratio when only one of the two settings is given, and the plot
has a single panel (@teunbrand, #6701). - Logical values for the linetype aesthetic will be interpreted numerically,
so thatlinetype = FALSEbecomes 0/'blank' andlinetype = TRUEbecomes
1/'solid' (@teunbrand, #6641) - Out-of-bounds datapoints used as padding by
stat_align()now get removed
silently rather than verbosely (@teunbrand, #6667)
ggplot2 4.0.0
User facing
Breaking changes
- The S3 parts of ggplot2 have been replaced with S7 bits (#6352).
- (breaking)
geom_violin(quantiles)now has actual quantiles based on
the data, rather than inferred quantiles based on the computed density. The
quantilesparameter that replacesdraw_quantilesnow belongs to
stat_ydensity()instead ofgeom_violin()(@teunbrand, #4120). - (Breaking) The defaults for all geoms can be set at one in the theme.
(@teunbrand based on pioneering work by @dpseidel, #2239)- A new
theme(geom)argument is used to track these defaults. - The
element_geom()function can be used to populate that argument. - The
from_theme()function allows access to the theme default fields from
inside theaes()function.
- A new
- Moved the following packages in the description. If your package depended on
ggplot2 to install these dependencies, you may need to list these in your
own DESCRIPTION file now (#5986).- Moved mgcv from Imports to Suggests
- Moved tibble from Imports to Suggests
- Removed glue dependency
- Default labels are derived in
build_ggplot()(previouslyggplot_build())
rather than in the layer method ofupdate_ggplot()
(previouslyggplot_add.Layer()). This may affect code that accessed the
plot$labelsproperty (@teunbrand, #5894). - In binning stats, the default
boundaryis now chosen to better adhere to
thenbinargument. This may affect plots that use default binning
(@teunbrand, #5882, #5036)
Lifecycle changes
-
Deprecated functions and arguments prior to ggplot2 3.0.0 throw errors instead
of warnings. -
Functions and arguments that were soft-deprecated up to ggplot2 3.4.0 now
throw warnings. -
annotation_borders()replaces the now-deprecatedborders()
(@teunbrand, #6392) -
Turned off fallback for
sizetolinewidthtranslation in
geom_bar()/geom_col()(#4848). -
The
fattenargument has been deprecated ingeom_boxplot(),
geom_crossbar()andgeom_pointrange()(@teunbrand, #4881). -
The following methods have been deprecated:
fortify.lm(),fortify.glht(),
fortify.confint.glht(),fortify.summary.glht()andfortify.cld(). It
is recommend to usebroom::augment()andbroom::tidy()instead
(@teunbrand, #3816). -
geom_errorbarh()is deprecated in favour of
geom_errorbar(orientation = "y")(@teunbrand, #5961). -
Special getter and setter functions have been renamed for consistency, allowing
for better tab-completion withget_*- andset_*-prefixes. The old names
remain available for backward compatibility (@teunbrand, #5568).New name Old name get_theme()theme_get()set_theme()theme_set()replace_theme()theme_replace()update_theme()theme_update()get_last_plot()last_plot()get_layer_data()layer_data()get_layer_grob()layer_grob()get_panel_scales()layer_scales() -
facet_wrap()has new options for thedirargument for additional control
over panel directions. They absorb interactions with the now-deprecated
as.tableargument. Internallydir = "h"ordir = "v"is deprecated
(@teunbrand, #5212). -
coord_trans()was renamed tocoord_transform()(@nmercadeb, #5825).
Improvements
Themes
- The
theme()function offers new arguments:geomto set defaults for layer aesthetics (#2239).spacing/marginsas root elements that are inherited by all other
spacings and (non-text) margins (@teunbrand, #5622).palette.{aes}.discreteandpalette.{aes}.continuouswhich determine
the palettes used when scales havepalette = NULL. This is the new
default for generic scales likescale_colour_discrete()or
scale_fill_continuous(), see also the 'Scales' section (#4696).panel.widthsandpanel.heightsto control the (absolute) size of the
panels (#5338, @teunbrand).legend.key.justificationto control the alignment of legend keys
(@teunbrand, #3669)
- Built-in
theme_*()functions have new arguments:ink/paper/accentto control foreground, background and highlight
colours respectively of the whole plot (@teunbrand, #6063, @EvaMaeRey, #6438).header_familyto easily set the font for headers and titles (#5886)- To accommodate,
plot.subtitle,plot.captionandplot.tagnow
inherit from the roottextelement instead of thetitleelement.
- To accommodate,
- New function family for setting parts of a theme. For example, you can now use
theme_sub_axis(line, text, ticks, ticks.length, line)as a substitute for
theme(axis.line, axis.text, axis.ticks, axis.ticks.length, axis.line). This
should allow slightly terser and more organised theme declarations
(@teunbrand, #5301). - Adjustments to margins (#6115):
- They can have NA-units, which indicate that the value should be inherited
from the parent element. - New
margin_part()function that comes pre-populated with NA-units, so
you can change a single margin without worrying that the others look off. - New
margin_auto()that recycles arguments in a CSS like fashion.
- They can have NA-units, which indicate that the value should be inherited
- The
fillof thepanel.bordertheme setting is ignored and forced to be
transparent (#5782). theme_classic()has the following changes (@teunbrand, #5978 & #6320):- Axis ticks are now black (
ink-coloured) instead of dark gray. - Axis line ends are now
"square". - The panel grid is now blank at the
panel.gridhierarchy level instead of
thepanel.grid.majorandpanel.grid.minorlevels.
- Axis ticks are now black (
- The
theme(legend.spacing.{x/y})setting now acceptsnull-units
(@teunbrand, #6417).
Scales
- The default colour and fill scales have a new
paletteargument. The default,
palette = NULLwill retrieve palettes from the theme (see the Themes section).
This replaces the old options-basedtypesystem, with some limited backward
compatibility (@teunbrand, #6064). - All scales now expose the
aestheticsparameter (@teunbrand, #5841) - All position scales now use the same definition of
xandyaesthetics.
This lets uncommon aesthetics likexinterceptexpand scales as usual.
(#3342, #4966, @teunbrand) - In continuous scales, when
breaksis a function andn.breaksis set, the
n.breakswill be passed to thebreaksfunction. Previously,n.breaks
only applied to the default break calculation (@teunbrand, #5972). - Changes in discrete scales:
- Added
paletteargument, which can be used to customise spacings between
levels (@teunbrand, #5770) - Added
continuous.limitsargument to control the display range
(@teunbrand, #4174, #6259). - Added
minor_breaksargument. This only makes sense in position scales,
where it affects the placement of minor ticks and minor gridlines (#5434). - Added
sec.axisargument. Discrete scales don't support transformations
so it is recommended to usedup_axis()to set custom breaks or labels.
Secondary discrete axes work with the continuous analogues of discrete
breaks (@teunbrand, #3171) - When
breaksyields a named vector, the names will be used aslabels
by default (@teunbrand, #6147).
- Added
- Changes in date/time scales:
- is silently cast to in date scales. Vice versa,
is cast to in datetime scales (@laurabrianna, #3533) - Bare numeric provided to date or datetime scales get inversely transformed
(i.e. cast to /) with a warning (@teunbrand) - The
date_breaks,date_minor_breaksanddate_labelsarguments have
been copied over toscale_{x/y}_time()(@teunbrand, #4335).
- is silently cast to in date scales. Vice versa,
- More stability for vctrs-based palettes (@teunbrand, #6117).
- Scale names, guide titles and aesthetic labels can now accept functions
(@teunbrand, #4313)
Coords
- Reversal of a dimension, typically 'x' or 'y', is now controlled by the
reverseargument incoord_cartesian(),coord_fixed(),coord_radial()
andcoord_sf(). Incoord_radial(), this replaces the olderdirection
argument (#4021, @teunbrand). coord_*(expand)can now take a logical vector to control expansion at any
side of the panel (top, right, bottom, left) (@teunbrand, #6020)- New
coord_cartesian(ratio)argument that absorbs the aspect ratio
functionality fromcoord_equal()andcoord_fixed(), which are now
wrappers forcoord_cartesian(). - In non-orthogonal coordinate systems (
coord_sf(),coord_polar()and
coord_radial()), using 'AsIs' variables escape transformation when
bothxandyis an 'AsIs' variable (@teunbrand, #6205). - Axis labels are now preserved better when using
coord_sf(expand = TRUE)and
graticule lines are straight but do not meet the edge (@teunbrand, #2985). coord_radial(clip = "on")clips to the panel area when the graphics device
supports clipping paths (@teunbrand, #5952).coord_radial(r.axis.inside)can now take a numeric value to control
placement of internally placed radius axes (@teunbrand, #5805).- Munching in
coord_polar()andcoord_radial()now adds more detail,
particularly for data-points with a low radius near the center
(@teunbrand, #5023).
Layers
- Position adjustments can now have auxiliary aesthetics (@teunbrand).
- New
stat_connect()to connect points via steps or other shapes
(@teunbrand, #6228) - New stat:
stat_manual()for arbitrary computations (@teunbrand, #3501) geom_boxplot()gains additional arguments to style the colour, linetype and
linewidths of the box, whiskers, med...
ggplot2 3.5.2
This is a small release focusing on providing infrastructure for other packages
to gracefully prepare for changes in the next major release.
Improvements
- Standardised test functions for important classes:
is_ggproto(),
is_ggplot(),is_mapping(),is_layer(),is_geom(),is_stat(),
is_position(),is_coord(),is_facet(),is_scale(),is_guide(),
is_guides(),is_margin(),is_theme_element()andis_theme(). - New
get_labs()function for retrieving completed plot labels
(@teunbrand, #6008). - New
get_geom_defaults()for retrieving resolved default aesthetics. - A new
ggplot_build()S3 method for <ggplot_built> classes was added, which
returns input unaltered (@teunbrand, #5800).
ggplot2 3.5.1
This is a small release focusing on fixing regressions from 3.5.0 and
documentation updates.
Bug fixes
- Fixed bug where discrete scales could not map aesthetics only consisting of
NAs (#5623) - Fixed spurious warnings from
sec_axis()withbreaks = NULL(#5713). - Patterns and gradients are now also enabled in
geom_sf()
(@teunbrand, #5716). - The default behaviour of
resolution()has been reverted to pre-3.5.0
behaviour. Whether mapped discrete vectors should be treated as having
resolution of 1 is controlled by the newdiscreteargument. - Fixed bug in
guide_bins()andguide_coloursteps()where discrete breaks,
such as the levels produced bycut(), were ordered incorrectly
(@teunbrand, #5757).
Improvements
- When facets coerce the faceting variables to factors, the 'ordered' class
is dropped (@teunbrand, #5666). coord_map()andcoord_polar()throw informative warnings when used
with the guide system (#5707).- When passing a function to
stat_contour(breaks), that function is used to
calculate the breaks even ifbinsandbinwidthare missing
(@teunbrand, #5686). geom_step()now supportslineend,linejoinandlinemitreparameters
(@teunbrand, #5705).- Fixed performance loss when the
.datapronoun is used inaes()(#5730). - Facet evaluation is better at dealing with inherited errors
(@teunbrand, #5670). stat_bin()deals with non-finite breaks better (@teunbrand, #5665).- While axes in
coord_radial()don't neatly fit the top/right/bottom/left
organisation, specifyingposition = "top"orposition = "right"
in the scale will flip the placement of the radial axis (#5735) - Theme elements that do not exist now throw warnings instead of errors (#5719).
- Fixed bug in
coord_radial()where full circles were not treated as such
(@teunbrand, #5750). - When legends detect the presence of values in a layer,
NAis now detected
if the data contains values outside the given breaks (@teunbrand, #5749). annotate()now warns aboutstatorpositionarguments (@teunbrand, #5151)guide_coloursteps(even.steps = FALSE)now works with discrete data that has
been formatted bycut()(@teunbrand, #3877).
ggplot2 3.5.0
This is a minor release that turned out quite beefy. It is focused on
overhauling the guide system: the system responsible for displaying information
from scales in the guise of axes and legends. As part of that overhaul, new
guides have been implemented and existing guides have been refined. The look
and feel of guides has been mostly preserved, but their internals and
styling options have changed drastically.
Briefly summarising other highlights, we also welcome coord_radial() as a
successor of coord_polar(). Initial support for newer graphical features,
such as pattern fills has been added. The API has changed how I()/<AsIs>
vectors interact with the scale system, namely: not at all.
Breaking changes
-
The guide system. As a whole. See 'new features' for more information.
While the S3 guide generics are still in place, the S3 methods for
guide_train(),guide_merge(),guide_geom(),guide_transform(),
guide_gengrob()have been superseded by the respective ggproto methods.
In practice, this will mean thatNextMethod()or sub-classing ggplot2's
guides with the S3 system will no longer work. -
By default,
guide_legend()now only draws a key glyph for a layer when
the value is in the layer's data. To revert to the old behaviour, you
can still setshow.legend = c({aesthetic} = TRUE)(@teunbrand, #3648). -
In the
scale_{colour/fill}_gradient2()and
scale_{colour/fill}_steps2()functions, themidpointargument is
transformed by the scale transformation (#3198). -
The
legend.keytheme element is set to inherit from thepanel.background
theme element. The default themes no longer set thelegend.keyelement.
This causes a visual change with the defaulttheme_gray()(#5549). -
The
scale_nameargument incontinuous_scale(),discrete_scale()and
binned_scale()is soft-deprecated. If you have implemented custom scales,
be advised to double-check that unnamed arguments ends up where they should
(@teunbrand, #1312). -
The
legend.text.alignandlegend.title.alignarguments intheme()are
deprecated. Thehjustsetting of thelegend.textandlegend.title
elements continues to fulfill the role of text alignment (@teunbrand, #5347). -
'lines' units in
geom_label(), often used in thelabel.paddingargument,
are now are relative to the text size. This causes a visual change, but fixes
a misalignment issue between the textbox and text (@teunbrand, #4753) -
coord_flip()has been marked as superseded. The recommended alternative is
to swap thexandyaesthetic and/or using theorientationargument in
a layer (@teunbrand, #5130). -
The
transargument in scales and secondary axes has been renamed to
transform. Thetransargument itself is deprecated. To access the
transformation from the scale, a newget_transformation()method is
added to Scale-classes (#5558). -
Providing a numeric vector to
theme(legend.position)has been deprecated.
To set the default legend position inside the plot use
theme(legend.position = "inside", legend.position.inside = c(...))instead.
New features
-
Plot scales now ignore
AsIsobjects constructed withI(x), instead of
invoking the identity scale. This allows these columns to co-exist with other
layers that need a non-identity scale for the same aesthetic. Also, it makes
it easy to specify relative positions (@teunbrand, #5142). -
The
fillaesthetic in many geoms now accepts grid's patterns and gradients.
For developers of layer extensions, this feature can be enabled by switching
fromfill = alpha(fill, alpha)tofill = fill_alpha(fill, alpha)when
providing fills togrid::gpar()(@teunbrand, #3997). -
New function
check_device()for testing the availability of advanced
graphics features introduced in R 4.1.0 onward (@teunbrand, #5332). -
coord_radial()is a successor tocoord_polar()with more customisation
options.coord_radial()can:- integrate with the new guide system via a dedicated
guide_axis_theta()to
display the angle coordinate. - in addition to drawing full circles, also draw circle sectors by using the
endargument. - avoid data vanishing in the center of the plot by setting the
donut
argument. - adjust the
angleaesthetic of layers, such asgeom_text(), to align
with the coordinate system using therotate_angleargument.
- integrate with the new guide system via a dedicated
The guide system
The guide system encompassing axes and legends, as the last remaining chunk of
ggplot2, has been rewritten to use the <ggproto> system instead of the S3
system. This change was a necessary step to officially break open the guide
system for extension package developers. The axes and legends now inherit from
a <Guide> class, which makes them extensible in the same manner as geoms,
stats, facets and coords (#3329, @teunbrand)
-
The most user-facing change is that the styling of guides is rewired through
the theme system. Guides now have athemeargument that can style
individual guides, whiletheme()has gained additional arguments to style
guides. Theme elements declared in the guide override theme elements set
through the plot. The new theme elements for guides are:
legend.key.spacing{.x/.y},legend.frame,legend.axis.line,
legend.ticks,legend.ticks.length,legend.text.positionand
legend.title.position. Previous style options in the arguments of
guide_*()functions are soft-deprecated. -
Unfortunately, we could not fully preserve the function of pre-existing
guide extensions written in the S3 system. A fallback for these old guides
is encapsulated in the<GuideOld>class, which calls the old S3 generics.
The S3 methods have been removed as part of cleaning up, so the old guides
will still work if the S3 methods are reimplemented, but we encourage to
switch to the new system (#2728). -
The
orderargument of guides now strictly needs to be a length-1
integer (#4958).
Axes
-
New
guide_axis_stack()to combine other axis guides on top of one another. -
New
guide_axis_theta()to draw an axis in a circular arc in
coord_radial(). The guide can be controlled by adding
guides(theta = guide_axis_theta(...))to a plot. -
New
guide_axis_logticks()can be used to draw logarithmic tick marks as
an axis. It supersedes theannotation_logticks()function
(@teunbrand, #5325). -
guide_axis()gains aminor.ticksargument to draw minor ticks (#4387). -
guide_axis()gains acapargument that can be used to trim the
axis line to extreme breaks (#4907). -
Primary axis titles are now placed at the primary guide, so that
guides(x = guide_axis(position = "top"))will display the title at the
top by default (#4650). -
The default
vjustfor theaxis.title.y.rightelement is now 1 instead of
0. -
Unknown secondary axis guide positions are now inferred as the opposite
of the primary axis guide when the latter has a knownposition(#4650).
Legends
-
New
guide_custom()function for drawing custom graphical objects (grobs)
unrelated to scales in legend positions (#5416). -
All legends have acquired a
positionargument, that allows individual guides
to deviate from thelegend.positionset in thetheme()function. This
means that legends can now be placed at multiple sides of the plot (#5488). -
The spacing between legend keys and their labels, in addition to legends
and their titles, is now controlled by the text'smarginsetting. Not
specifying margins will automatically add appropriate text margins. To
control the spacing within a legend between keys, the new
legend.key.spacing.{x/y}argument can be used intheme(). This leaves the
legend.spacingtheme setting dedicated to solely controlling the spacing
between different guides (#5455). -
guide_colourbar()andguide_coloursteps()gain analphaargument to
set the transparency of the bar (#5085). -
New
displayargument inguide_colourbar()supplants therasterargument.
In R 4.1.0 and above,display = "gradient"will draw a gradient. -
Legend keys that can draw arrows have their size adjusted for arrows.
-
When legend titles are larger than the legend, title justification extends
to the placement of keys and labels (#1903). -
Glyph drawing functions of the
draw_key_*()family can now set"width"
and"height"attributes (in centimetres) to the produced keys to control
their displayed size in the legend. -
coord_sf()now uses customisable guides provided in the scales or
guides()function (@teunbrand).
Improvements
-
guide_coloursteps(even.steps = FALSE)now draws one rectangle per interval
instead of many small ones (#5481). -
draw_key_label()now better reflects the appearance of labels (#5561). -
position_stack()no longer silently removes missing data, which is now
handled by the geom instead of position (#3532). -
The
minor_breaksfunction argument in scales can now also take a function
with two arguments: the scale's limits and the scale's major breaks (#3583). -
Failing to fit or predict in
stat_smooth()now gives a warning and omits
the failed group, instead of throwing an error (@teunbrand, #5352). -
labeller()now handles unspecified entries from lookup tables
(@92amartins, #4599). -
fortify.default()now accepts a data-frame-like object granted the object
exhibits healthydim(),colnames(), andas.data.frame()behaviours
(@hpages, #5390). -
geom_violin()gains aboundsargument analogous togeom_density()s
(@eliocamp, #5493). -
To apply dodging more consistently in violin plots,
stat_ydensity()now
has adropargument to keep or discard groups with 1 observation. -
geom_boxplot()gains a new argument,staplewidththat can...
ggplot2 3.4.4
This hotfix release adapts to a change in r-devel's base::is.atomic() and
the upcoming retirement of maptools.
fortify()for sp objects (e.g.,SpatialPolygonsDataFrame) is now deprecated
and will be removed soon in support of the upcoming retirement of rproj, rgeos,
and maptools. In advance
of the whole removal,fortify(<SpatialPolygonsDataFrame>, region = ...)
no longer works as of this version (@yutannihilation, #5244).
ggplot2 3.4.3
This hotfix release addresses a version comparison change in r-devel. There are
no user-facing or breaking changes.
ggplot2 3.4.2
This is a hotfix release anticipating changes in r-devel, but folds in upkeep
changes and a few bug fixes as well.
Minor improvements
-
Various type checks and their messages have been standardised
(@teunbrand, #4834). -
ggplot2 now uses
scales::DiscreteRangeandscales::ContinuousRange, which
are available to write scale extensions from scratch (@teunbrand, #2710). -
The
layer_data(),layer_scales()andlayer_grob()now have the default
plot = last_plot()(@teunbrand, #5166). -
The
datetime_scale()scale constructor is now exported for use in extension
packages (@teunbrand, #4701).
Bug fixes
-
update_geom_defaults()andupdate_stat_defaults()now return properly
classed objects and have updated docs (@dkahle, #5146). -
For the purposes of checking required or non-missing aesthetics, character
vectors are no longer considered non-finite (@teunbrand, @4284). -
annotation_logticks()skips drawing ticks when the scale range is non-finite
instead of throwing an error (@teunbrand, #5229). -
Fixed spurious warnings when the
weightwas used instat_bin_2d(),
stat_boxplot(),stat_contour(),stat_bin_hex()andstat_quantile()
(@teunbrand, #5216). -
To prevent changing the plotting order,
stat_sf()is now computed per panel
instead of per group (@teunbrand, #4340). -
Fixed bug in
coord_sf()where graticule lines didn't obey
panel.grid.major's linewidth setting (@teunbrand, #5179). -
geom_text()drops observations whereangle = NAinstead of throwing an
error (@teunbrand, #2757).
ggplot2 3.4.1
This is a small release focusing on fixing regressions in the 3.4.0 release
and minor polishes.
Breaking changes
- The computed variable
yinstat_ecdf()has been superseded byecdfto
prevent incorrect scale transformations (@teunbrand, #5113 and #5112).
New features
-
Added
scale_linewidth_manual()andscale_linewidth_identity()to support
thelinewidthaesthetic (@teunbrand, #5050). -
ggsave()warns when multiplefilenames are given, and only writes to the
first file (@teunbrand, #5114).
Bug fixes
-
Fixed a regression in
geom_hex()where aesthetics were replicated across
bins (@thomasp85, #5037 and #5044). -
Using two ordered factors as facetting variables in
facet_grid(..., as.table = FALSE)now throws a warning instead of an
error (@teunbrand, #5109). -
Fixed misbehaviour of
draw_key_boxplot()anddraw_key_crossbar()with
skewed key aspect ratio (@teunbrand, #5082). -
Fixed spurious warning when
weightaesthetic was used instat_smooth()
(@teunbrand based on @clauswilke's suggestion, #5053). -
The
lwdalias is now correctly replaced bylinewidthinstead ofsize
(@teunbrand based on @clauswilke's suggestion #5051). -
Fixed a regression in
Coord$train_panel_guides()where names of guides were
dropped (@maxsutton, #5063).
In binned scales:
-
Automatic breaks should no longer be out-of-bounds, and automatic limits are
adjusted to include breaks (@teunbrand, #5082). -
Zero-range limits no longer throw an error and are treated akin to continuous
scales with zero-range limits (@teunbrand, #5066). -
The
trans = "date"andtrans = "time"transformations were made compatible
(@teunbrand, #4217).