figCity: City-spec Chart in Auto Reporting

Description Usage Arguments Value Author(s) See Also

Description

Only used for automated reporting. Get a city distribution.

Usage

1
2
3
4
figCity(data, imput = NULL, riskvar, librisk, curYrs, sort = list(col =
  1, desc = FALSE), digits, Cities = NULL, lang = c("cn", "en"),
  na.string = getOption("na.string"), altfont = "Microsoft YaHei",
  dynamic = FALSE, ...)

Arguments

data

Raw data frame.

imput

Summarized data frame.

riskvar

Variable name of the risk.

librisk

Data frame of the risk pool.

curYrs

String. The year range of this plot.

sort

A list. Default list(col=1, desc=FALSE), meaning sort the results ascendingly by Col1.

digits

Number of digits of the results. Default 1.

Cities

Data frame of the city pool.

lang

'cn' or 'en'.

na.string

A named vector c(cn=..., en=...). How to present NAs. Default getOption("na.string"). You can define yours.

altfont

Alternative font name. Default 'Microsoft YaHei'.

dynamic

Interactive JavaScript charts/tables or not. If TRUE, call recharts::echartR to make the object. Default FALSE.

...

Value

A ggplot2 object or echarts object.

Author(s)

Yiying Wang, wangy@aetna.com

See Also

ggplot2 echartR


madlogos/aseshms documentation built on May 21, 2019, 11:03 a.m.