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).