Skip to contents

ggsurveillance 0.5.0

CRAN release: 2025-07-01

New Features

  • bin_by_date(): New tidyverse-compatible function for flexible date-based aggregation (binning). This function was previously internal to geom_epicurve() and stat_bin_date().
    • It includes a simpler and faster fill_gaps argument to automatically fill gaps in a time series with 0s.
  • guide_axis_nested_date(): New axis guide for creating nested date labels for hierarchical time periods (e.g., year > month > day). This feature is powered by the legendry package.
  • label_power10(): New ggplot2-compatible labeling function to format numbers in scientific notation with powers of 10 (e.g., \(2 \times 10^5\)).
  • geom_epicurve_text() and geom_epicurve_point(): New geoms to easily add text annotations or points to cases in epidemic curves created with geom_epicurve().

Breaking Changes

  • scale_y_cases_5er() now defaults to starting at 0, providing more intuitive and accurate case count visualizations. The previous behaviour can be restored by setting scale_y_cases_5er(limits = NULL).

ggsurveillance 0.4.0

CRAN release: 2025-05-09

ggsurveillance 0.3.0

CRAN release: 2025-04-11

ggsurveillance 0.2.0

CRAN release: 2025-03-02

ggsurveillance 0.1.2

CRAN release: 2025-02-11

ggsurveillance 0.1.1

CRAN release: 2025-01-31

  • First release