plot_country_time_series: plot time series for a country

Description Usage Arguments Value

View source: R/plots.R

Description

plot 95

Usage

1
2
plot_country_time_series(output, country_name, y_label, thin_every = 0,
  thin_integer = FALSE, thin_by_sum = FALSE)

Arguments

output

list of n matrices, where n is the number of runs. Each row in each matrix corresponds to a country and each column to a time. the rownames of the matrices are the country names.

country_name

name of country for which to plot time series, or "all" to sum across all countries

y_label

string. y-axis label

thin_every

an integer. If 0, ignore. Otherwise, thin each matrix every this many columns

thin_integer

a logical. If TRUE, thin each matrix to integer values of times. If FALSE, ignore

thin_by_sum

logical. IF TRUE, thin by adding together columns (e.g. if thin_every = 2, add togeher columns 1-2, columns 3-4 etc.) This is useful for thinning quantities such as incidence. If FALSE, ignore.

Value

ggplot object with 95


jameshay218/vaxedemic documentation built on Jan. 30, 2020, 2:58 a.m.