Releases: biostats-dev/ggsurveillance
Releases · biostats-dev/ggsurveillance
0.5.2
-
{ggplot2}4.0.0 compatibility fixes. -
geom_epicurve(): Now honours thewidthparameter correctly. -
label_power10(): Add "cdot" (e.g.$2 \cdot 10^5$ ) as an option for the multiplication symbol. ImproveNAhandling. -
stat_last_value(): Applylabellerif a numeric value is provided forlabelaesthetic. -
create_agegroups(): Improve handling of age 0. Negative ages are now treated asNAor will be labelled according tona_label. Improve number padding.
0.5.1
0.5.0
New Features
-
bin_by_date(): Newtidyverse-compatible function for flexible date-based aggregation (binning). This function was previously internal togeom_epicurve()andstat_bin_date().- It includes a simpler and faster
fill_gapsargument to automatically fill gaps in a time series with 0s.
- It includes a simpler and faster
-
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(): Newggplot2-compatible labeling function to format numbers in scientific notation with powers of 10 (e.g.,$2 \times 10^5$ ). -
geom_epicurve_text()andgeom_epicurve_point(): New geoms to easily add text annotations or points to cases in epidemic curves created withgeom_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 settingscale_y_cases_5er(limits = NULL).
0.4.0
geom_bar_diverging()for diverging bar charts, including:stat_diverging()for easy labeling of these chartsscale_x_continuous_diverging(): Creates symmetric diverging scalesgeom_area_diverging()for continuous variables.geom_col_range(): The underlying geom which creates bars fromx,yminandymax(or flipped).
geom_label_last_value()for labeling of the last value of a time series (likegeom_line())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.geom_label_last_value_repel():ggrepelversions for crowded plots with multiple lines
- New dataset:
population_german_states label_skip()for skipping axis labels, e.g. only label every second tick- re-export
label_date()andlabel_date_short()from scales for date labels with a custom locale. - Improvements and bug fixes
0.3.0
- new
ggplot2theme modification helpers:theme_mod_rotate_x_axis_labels(): rotate axis labelstheme_mod_legend_position(): legend positioningtheme_mod_remove_minor_grid(): remove minor panel grid lines (x, y or both) or all grind lines
geom_vline_year()now also supports year_breaks based on weeks. Since weeks don't fall on the same date every year.tsibblenow optional dependency to improve speed of first install- add
plotlycompatibility forgeom_epicurve()andgeom_epigantt() scale_y_cases_5er(): rename tomin.n(fromn.min) for correctbase::pretty()compatibility- Bug fixes and minor improvements