tidy_arch_ncov: Tidy data

Description Usage Arguments Author(s) Examples

View source: R/tidy-arch-ncov.R

Description

The data of confirmed cases and spiral coordinates were arranged into visual data.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
tidy_arch_ncov(
  data,
  trans.log = TRUE,
  start.angle = 0,
  end.angle = 3.2 * pi,
  rep.end = TRUE,
  max.width = 50,
  min.width = 1,
  max.size = 7,
  min.size = 0.5,
  na.rm = TRUE,
  ...
)

Arguments

data

a data frame.

trans.log

logical. If TRUE, If true, a logarithmic transformation is performed on the confirmed case data.

start.angle, end.angle

angle of start/end of spiral.

rep.end

a logical value indicating hether the starting point of each cell is the end point of its previous cell, and if FALSE, there will be gaps between each cell.

max.width, min.width

max/min width of spiral.

max.size, min.size

max size of label.

na.rm

if TRUE (default), the row whose name contains the missing value will be removed.

...

extra parameters.

Author(s)

Houyun Huang

Examples

1
2
3
4
5
## Not run: 
require(nCov2019)
get_nCov2019()[] %>% tidy_arch_ncov()

## End(Not run)

houyunhuang/archncov documentation built on April 2, 2020, 9:41 p.m.