rccs_ggplot_inc_plot: GGplot2 time series graph A function to generate static time...

Description Usage Arguments Value

View source: R/rccs_ggplot_inc_plot.R

Description

GGplot2 time series graph A function to generate static time series graphs

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
rccs_ggplot_inc_plot(
  csse_data_object,
  iso3c_country_code,
  by_p100000_incidence = FALSE,
  plot_title = NA,
  y_logscale = FALSE,
  data_type = "daily",
  smoothing = TRUE,
  smoothing_by_ma = FALSE,
  ma_n_days = 3,
  start_date = NA,
  end_date = NA,
  separate_graphs = FALSE
)

Arguments

csse_data_object

a CsseData object created by load_csse

iso3c_country_code

a character vector of iso3c country codes

by_p100000_incidence

a logical value

plot_title

a character string containing the plot title

y_logscale

a logical value

data_type

data type : "cumulative" or "daily"

smoothing

a logical value

smoothing_by_ma

a logical value

ma_n_days

an integer value (size of the rolling window for averaging)

start_date

either NA or the start date of data

end_date

either NA of the end date of data

separate_graphs

a logicial value

Value

a ggplot2 object


supertux83/rccs documentation built on Aug. 1, 2020, 11:53 p.m.