|
| 1 | +# ggsurveillance 0.5.2 |
| 2 | + |
| 3 | +- `{ggplot2}` 4.0.0 compatibility fixes. |
| 4 | +- `geom_epicurve()`: Now honours the `width` parameter correctly. |
| 5 | +- `label_power10()`: Add "cdot" (e.g. $2 \cdot 10^5$) as an option for the multiplication symbol. Improve `NA` handling. |
| 6 | +- `stat_last_value()`: Apply `labeller` if a numeric value is provided for `label` aesthetic. |
| 7 | +- `create_agegroups()`: Improve handling of age 0. Negative ages are now treated as `NA` or will be labelled according to `na_label`. Improve number padding. |
| 8 | + |
1 | 9 | # ggsurveillance 0.5.1 |
2 | 10 |
|
3 | 11 | - Bug fix: Fix corner cases for the `fill_gaps` option in `bin_by_date()` |
|
7 | 15 | ## New Features |
8 | 16 |
|
9 | 17 | - `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()`. |
10 | | - - It includes a simpler and faster `fill_gaps` argument to automatically fill gaps in a time series with 0s. |
11 | | -- `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. |
| 18 | + - It includes a simpler and faster `fill_gaps` argument to automatically fill gaps in a time series with 0s. |
| 19 | +- `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. |
12 | 20 | - `label_power10()`: New `ggplot2`-compatible labeling function to format numbers in scientific notation with powers of 10 (e.g., $2 \times 10^5$). |
13 | 21 | - `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()`. |
14 | 22 |
|
|
25 | 33 | - `geom_col_range()`: The underlying geom which creates bars from `x`, `ymin` and `ymax` (or flipped). |
26 | 34 | - `geom_label_last_value()` for labeling of the last value of a time series (like `geom_line()`) |
27 | 35 | - `stat_last_value()` pulls the coordinates of the last value. E.g. can be used to add a point to the end of the line. |
28 | | - - `geom_label_last_value_repel()`: `ggrepel` versions for crowded plots with multiple lines |
| 36 | + - `geom_label_last_value_repel()`: `{ggrepel}` versions for crowded plots with multiple lines |
29 | 37 | - New dataset: `population_german_states` |
30 | 38 | - `label_skip()` for skipping axis labels, e.g. only label every second tick |
31 | 39 | - re-export `label_date()` and `label_date_short()` from scales for date labels with a custom locale. |
|
0 commit comments