who_sitrep_import: who sitrep data management and visualization

Description Usage Arguments Value Functions Examples

View source: R/sitrep_who.R

Description

clean and plot who sitrep

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
who_sitrep_import(update)

who_sitrep_cleandb(data)

who_sitrep_filter(data, country_region = "all")

who_sitrep_ggline(data, country_region = country_region, y_cum_value,
  color, n_breaks = 5)

who_sitrep_ggbar(data, country_region = country_region, y_inc_value,
  fill, n_breaks = 5)

who_sitrep_country_report(update, country_region)

Arguments

update

string of date to update

data

input of raw who dataset

country_region

name of country region

y_cum_value

cumulative variable

color

colo of attribute

n_breaks

y axis breaks

y_inc_value

incidence variable

fill

fill of attribute

data

input of raw who dataset

Value

report per country_region using digitalized who sitreps

Functions

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## Not run: 

library(covid19viz)
library(tidyverse)

who_sitrep <- who_sitrep_import(update = "2020-03-10")

who_sitrep %>%
    who_sitrep_cleandb() %>%
    filter(country_region=="Peru")

who_sitrep %>%
    who_sitrep_cleandb() %>%
    who_sitrep_filter(country_region = "Peru") %>%
    who_sitrep_ggline(y_cum_value = n_cum_conf,
                      color = class, n_breaks = 10)


## End(Not run)

avallecam/covid19viz documentation built on Sept. 24, 2020, 3:43 p.m.