aec_age_trend_rate_pc_change: aec_age_trend_rate_pc_change

aec_age_trend_rate_pc_changeR Documentation

aec_age_trend_rate_pc_change

Description

Plot the change in rate as a percentage from first year of surveillance.

Usage

aec_age_trend_rate_pc_change(data, collection)

Arguments

data

a dataframe containing the following variables: fyear6, age_group_new, sex, rate

collection

A string giving either "CDI" or "bacteraemia". This determines the age groups

Value

A ggplot2 object

See Also

aec_age_trend_pc

aec_age_trend_rate

Examples

data(age_trends_data)
p <- aec_age_trend_rate_pc_change(data = age_trends_data, collection = "CDI")
p

publichealthengland/hcaidcs documentation built on Jan. 17, 2024, 1:34 p.m.