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
NA
s (#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 newdiscrete
argument. - 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 ifbins
andbinwidth
are missing
(@teunbrand, #5686). geom_step()
now supportslineend
,linejoin
andlinemitre
parameters
(@teunbrand, #5705).- Fixed performance loss when the
.data
pronoun 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,
NA
is now detected
if the data contains values outside the given breaks (@teunbrand, #5749). annotate()
now warns aboutstat
orposition
arguments (@teunbrand, #5151)guide_coloursteps(even.steps = FALSE)
now works with discrete data that has
been formatted bycut()
(@teunbrand, #3877).