g_map_covid: Dominican map with COVID-19 cases by province

Description Usage Arguments Value Examples

View source: R/g_map_covid.R

Description

This function graphs the provinces with the most positive cases of COVID19 in the DR.

Usage

1
g_map_covid(date = "latest", interactive = FALSE, variable = "Cases")

Arguments

date

Character indecating the date to plot in "yyyy-mm-dd" format. Default "latest"

variable

Character. One of the following c("Cases", "Deaths", "Recovered")

by_inhabitants

Logical. Should take account the province population? Default TRUE.

saveplot

Logical. Should save the ggplot objet to the .GlobalEnv? Default FALSE.

savepng

Logical. Should save a png version of the plot? Default FALSE.

Value

Graph the Dominican map with COVID-19 cases by province and saves a copy in png format to the computer at the address defined in setwd().

Examples

1
2
3
4
g_map_covid()
g_map_covid(savepng = TRUE)
g_map_covid(date = "latest", variable = "Deaths")
g_map_covid(date = "2020-04-05", variable = "Recovered")

fidelmorla/drcovidplots documentation built on July 14, 2020, 4:02 p.m.