plot_imports_stackeddest: Barchart plot of importations stacked by source

Description Usage Arguments Value

View source: R/PlotUtils.R

Description

Barchart plot of importations stacked by source

Usage

1
2
3
4
5
6
7
8
9
plot_imports_stackeddest(
  data = imports_mean %>% rename(amount = import_mean),
  t_limits = lubridate::as_date(c("2020-01-01", "2020-04-20")),
  axes_text_size = c(9, 9),
  leg_text_size = 8,
  leg_title_size = 10,
  time_int = 5,
  n_cols = 20
)

Arguments

data

data of importations to plot. Must have a columns c("t", "loc", "amount")

t_limits

Date limits of plot

axes_text_size

axis value font size (2 values required)

time_int

time interval for x-axis

n_cols

number of colors/locations to keep individually

Value

a corrected version of the inferred incidence data corrected for reporting changes in Hubei.


HopkinsIDD/covidImportation documentation built on Sept. 14, 2020, 2:43 p.m.