construct_epi_plot: Construct Epidemic Control Plot

View source: R/connected_scatterplot.R

construct_epi_plotR Documentation

Construct Epidemic Control Plot

Description

This internal function builds a ggplot object to visualize the relationship between deaths and infections.

Usage

construct_epi_plot(filtered_data, min_max_year, axis_limits, year_limits)

Arguments

filtered_data

A data frame containing the filtered data with columns deaths, infections, and country.

min_max_year

A data frame containing the data points for the minimum and maximum years for each country.

axis_limits

A numeric vector of length two containing the global minimum and maximum values for the axes.

year_limits

A numeric vector of length two containing the global min and max of the year ranges

Value

A ggplot2 plot object that visualizes the epidemic control trajectories.


USAID-OHA-SI/mindthegap documentation built on Jan. 19, 2025, 3:16 a.m.