Skip to content

Commit 5ab5379

Browse files
committed
v0.5.2 RC1
1 parent a628941 commit 5ab5379

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

NEWS.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
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+
19
# ggsurveillance 0.5.1
210

311
- Bug fix: Fix corner cases for the `fill_gaps` option in `bin_by_date()`
@@ -7,8 +15,8 @@
715
## New Features
816

917
- `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.
1220
- `label_power10()`: New `ggplot2`-compatible labeling function to format numbers in scientific notation with powers of 10 (e.g., $2 \times 10^5$).
1321
- `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()`.
1422

@@ -25,7 +33,7 @@
2533
- `geom_col_range()`: The underlying geom which creates bars from `x`, `ymin` and `ymax` (or flipped).
2634
- `geom_label_last_value()` for labeling of the last value of a time series (like `geom_line()`)
2735
- `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
2937
- New dataset: `population_german_states`
3038
- `label_skip()` for skipping axis labels, e.g. only label every second tick
3139
- re-export `label_date()` and `label_date_short()` from scales for date labels with a custom locale.

inst/WORDLIST

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ asn
3939
atanh
4040
biostats
4141
boxcox
42+
cdot
4243
center
4344
cutoff
4445
datetime

0 commit comments

Comments
 (0)