Skip to content

ggplot2 3.4.2

Compare
Choose a tag to compare
@thomasp85 thomasp85 released this 11 Apr 06:37
5355937

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::DiscreteRange and scales::ContinuousRange, which
    are available to write scale extensions from scratch (@teunbrand, #2710).

  • The layer_data(), layer_scales() and layer_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() and update_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 weight was used in stat_bin_2d(),
    stat_boxplot(), stat_contour(), stat_bin_hex() and stat_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 where angle = NA instead of throwing an
    error (@teunbrand, #2757).