chartTornado: Tornado Chart Based on 'ggplot2'

Description Usage Arguments Value Author(s) See Also

Description

Tornado (stacked bar) chart using ggplot2.

Usage

1
2
3
4
chartTornado(data, xvar, freq = NULL, gvar, title = paste("Chart:",
  freq, "~", xvar), annotate = NULL, xlab = xvar, ylab = freq,
  palette = getOption("init.pal"), alt.font = "SimHei",
  theme = "wsj", plot.background = "antiquewhite1", ...)

Arguments

data

Data frame for ploting.

xvar

Variable name of x.

freq

Variable name of y.

gvar

Variable name of grouping factor.

title

Chart title. Default paste("Chart:", freq, "~", xvar).

annotate

Format of the annotation. Currently not working.

xlab

Label wording of x axis. Default xvar.

ylab

Label wording of y axis. Default yvar.

palette

Palette name, default 'aetnagreen'

alt.font

Define alternative font name for plotting. Default 'SimHei'.

theme

The theme name. Only accepts themes in ggplot2 and ggthemes. Default 'wsj'.

plot.background

The color name of the plot background. Default 'antiquewhite1'.

...

ignore

Value

A ggplot2 object.

Author(s)

Yiying Wang, wangy@aetna.com

See Also

getAetnaPal, ggplot2


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