plot.nCov2019: plot.nCov2019

Description Usage Arguments

View source: R/plot.R

Description

plot map with ggplots, it is the core of plot.nCov2019 and Plot.nCov2019History.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## S3 method for class 'nCov2019'
plot(
  x,
  region = "Global",
  continuous_scale = FALSE,
  palette = "Reds",
  date = NULL,
  title = "COVID19",
  type = "cases",
  ...
)

Arguments

x

data for plot, it should be class of nCov2019 or nCov2019Hisory.

region

If Global or a specified region.

continuous_scale

logical, Whether to use continuous fill color, if TRUE(the default), use continuous type, otherwise use discrete type.

palette

If a string, will use that named palette. If a number, will index into the list of palettes of appropriate type. The list of available palettes can found in the Palettes section.

date

Specify the date.

title

Title of the map.

type

Specify the type of Statistics.

...

Additional parameters.


timze216/nCov2019V2 documentation built on Jan. 18, 2021, 12:39 a.m.