Learn R Programming

ggsurveillance

ggsurveillance is an R package with helpful tools and ggplot extensions for epidemiology, especially infectious disease surveillance and outbreak investigation. All functions provide tidy functional interfaces for easy integration with the tidyverse. For documentation and vignettes see: ggsurveillance.biostats.dev

Key Features

Copy Link

Version

Install

install.packages('ggsurveillance')

Monthly Downloads

238

Version

0.5.2

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Alexander Bartel

Last Published

November 27th, 2025

Functions in ggsurveillance (0.5.2)

scale_y_cases_5er

Continuous x-axis and y-axis scale for (case) counts
scale_y_discrete_reverse

Reversed discrete scale for 'ggplot2'
label_power10

Format numbers as power-of-10 R expressions
label_skip

Skip labels on an axis
influenza_germany

German Influenza (FLU) Surveillance data
scale_continuous_diverging

Diverging continuous scales for diverging bar charts with symmetrical limits
label_date

Date labeller
geom_label_last_value, stat_last_value

Add labels or points to the last value of a line chart
linelist_hospital_outbreak

Line list of a fictional hospital outbreak (Data)
theme_mod_disable_legend, theme_mod_legend_position

Quickly adjust the legend position
theme_mod_remove_minor_grid

Quickly remove the minor lines of the panel grid
uncount, expand_counts

Duplicate rows according to a weighting variable
theme_mod_rotate_axis_labels

Rotate axis labels
population_german_states

Population of the German states (2023)
create_agegroups

Create Age Groups from Numeric Values
geometric_mean

Compute a Geometric Mean
align_dates_seasonal

Align dates for seasonal comparison
geom_col_range

Create a ranged bar chart
geom_vline_year

Automatically create lines at the turn of every year
guide_axis_nested_date

Nested axis guide for date scales
geom_bar_diverging

Create diverging bar charts, diverging area charts or other plots for opposing categorical data.
geom_epigantt

Epi Gantt Chart: Visualize Epidemiological Time Intervals
bin_by_date

Aggregate data by time periods
geom_epicurve

Create an epidemic curve plot or bin/count observations by date periods