plot_map: Plot maps for nCoV in China

Description Usage Arguments Examples

View source: R/ncovr.R

Description

Plot maps for nCoV in China

Usage

1
2
3
4
5
6
7
8
9
plot_map(
  x,
  key = c("confirmedCount", "suspectedCount", "curedCount", "deadCount"),
  filter = "unkown",
  legend_title = "Confirmed",
  color = "Reds",
  scale = c("cat", "log"),
  method = c("province", "city", "country")
)

Arguments

key

the column name

filter

the rows to remove.

legend_title

legend title

color

The colors or color function that values will be mapped to, see RColorBrewer::display.brewer.all()

scale

"cat" for category, 'log' for numeric

method

'province' or 'city'.

ncov

the dataset obtained by get_ncov()

Examples

1
2
ncov <- get_ncov()
plot_map(ncov)

pzhaonet/ncovr documentation built on June 12, 2020, 8:15 p.m.