plot_epi: Create a plot of epi measures from EpiModel simulation

Description Usage Arguments Value Examples

View source: R/plot_epi.R

Description

Create a plot of epi measures from EpiModel simulation

Usage

1
2
3
4
5
6
7
plot_epi(
  plot_data,
  brk_across = "ovr",
  targets = NULL,
  plot_type = "line",
  year_range = c(2000, 2030)
)

Arguments

plot_data

Data object that is output from

brk_across

the attribute over which you want to break out the measure (for example race).

targets

A dataframe that contains the targets for the measure of interest. Note that plot_data should be specific to a singe measure.

plot_type

type of geom to call. Default is for a line plot (geom_line) when 'plot_type == "line"'. Otherwise 'geom_smooth' is called.

year_range

Range of years over which plot should be created.

Value

a ggplot object.

Examples

1
# See vignette

adam-s-elder/EpiModelWHAMPDX documentation built on June 21, 2021, 5:31 a.m.