Description Usage Arguments Value Author(s) See Also
Columns (vertical bar) chart using ggplot2, with or without benchmarking lines.
1 2 3 4 5 6 7 8  | chartColumn(data, xvar, yvar, gvar = NULL, title = paste("Chart:",
  yvar, "~", xvar), position = "dodge", annotate = "number2",
  xlab = xvar, ylab = yvar, palette = getOption("init.pal"),
  hline = data.frame(label = NA, linetype = "solid", value = NA),
  vline = data.frame(label = NA, linetype = "solid", value = NA),
  line = list(list(label = NA, linetype = "solid", arrow = FALSE, value =
  data.frame(x = NA, y = NA))), alt.font = "SimHei", theme = "wsj",
  plot.background = "antiquewhite1", ...)
 | 
data | 
 Data frame for ploting.  | 
xvar | 
 Variable name of x.  | 
yvar | 
 Variable name of y.  | 
gvar | 
 Variable name of grouping factor.  | 
title | 
 String. Chart title. Default   | 
position | 
 'dodge' or 'stack'.  | 
annotate | 
 Format of the annotation. 'number(n)', 'percent(n)', 'comma' or 'dollar'.  | 
xlab | 
 Label wording of x axis. Default   | 
ylab | 
 Label wording of y axis. Default   | 
palette | 
 Palette name, default 'aetnagreen'  | 
hline | 
 A data frame with columns of 'label', 'linetype' and 'value'. Each record makes a horizontal line.  | 
vline | 
 A data frame with columns of 'label', 'linetype' and 'value'. Each record makes a vertical line.  | 
line | 
 A list. Default value is   | 
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  | 
A ggplot2 object.
Yiying Wang, wangy@aetna.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.