chartBox: Box Chart Based on 'ggplot2'

Description Usage Arguments Value Author(s) See Also

Description

Box chart using ggplot2.

Usage

1
2
3
4
chartBox(data, xvar, yvar, gvar = NULL, horizontal = FALSE,
  xlab = xvar, ylab = yvar, title = paste("Chart: boxplot of", yvar,
  "by", xvar), palette = getOption("init.pal"), alt.font = "SimHei",
  theme = "wsj", plot.background = "antiquewhite1", ...)

Arguments

data

Data frame for ploting.

xvar

Variable name of x.

yvar

Variable name of y.

gvar

Variable name of grouping factor.

horizontal

Logical. If TRUE, the boxes are horizontally presented. Default FALSE.

xlab

Label wording of x axis. Default xvar.

ylab

Label wording of y axis. Default yvar.

title

Chart title. Default paste("Chart: boxplot of", yvar," by", xvar).

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, ggthemes


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